Created attachment 336296 [details]
I am creating a template engine for my application. A sample is attached.
While using XML Dom parsing of string and appending on main document element, the default browser styles are not getting applied on elements. Not even displaying the input tag properly.
While using HTML Dom parsing of string and appending on main document element, tr/td elements are vanished - but instead a text node with its content is getting created on parsing.
When using XML Dom parsing method, at least when importNode is called, the default browser styles should be applied on the node.
When using HTML Dom parsing, the tr/td tags should be persisted as it is, even if there is no holding table present in the document.
User Agent String:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36
By using the help from: https://bugzilla.mozilla.org/show_bug.cgi?id=1448110
I am marking this issue as Resolved - Invalid