Bug 183910 - DOMParser - Importing elements from parsed document
Summary: DOMParser - Importing elements from parsed document
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Other
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-22 12:24 PDT by pnparam
Modified: 2018-03-22 12:50 PDT (History)
1 user (show)

See Also:


Attachments
Test Scenario (4.84 KB, text/html)
2018-03-22 12:24 PDT, pnparam
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description pnparam 2018-03-22 12:24:13 PDT
Created attachment 336296 [details]
Test Scenario

I am creating a template engine for my application. A sample is attached.

Actual results:

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.


Expected results:

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.
Comment 1 pnparam 2018-03-22 12:30:48 PDT
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
Comment 2 pnparam 2018-03-22 12:50:07 PDT
By using the help from: https://bugzilla.mozilla.org/show_bug.cgi?id=1448110

I am marking this issue as Resolved - Invalid