Hi Team,
I am facing weird issue while creating style node with text node in it as
follows:
I want to add below rule to style tag for example:
/*
.my-class:before {
content: "\F1F0"
}
*/
And here is my code
Element* style = document->CreateRawElement(html_names::kStyleTag,
CreateElementFlags::ByCreateElement());
// Append the style element to the head
headElement->appendChild(style);
std::string text=".myclass:before {\n content: \"\\F1F0\"\n}\n";
// it should be as below
style->ParserAppendChild(static_cast<blink::Node*>(document->createTextNode(text.c_str())));
This code turns my style node having data as below:
my-class:before { content: ""; }
I have noticed, inside StyleSheetContents:ParseString this rule gets
received as
my-class:before { content: \"\u00EF\u\0087\u\00B0"; }\n"
Why is this text node creation causing my Hex value to change, And if it is
so, then how should I handle this.
Thanks
--
You received this message because you are subscribed to the Google Groups
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/4623d61c-212f-4a02-92d0-24e0e23976a2n%40chromium.org.