Open Bug 531260 Opened 15 years ago Updated 2 years ago

nsIStyleSheetLinkingElement should respect aFromParser on NS_NewElement()

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

People

(Reporter: hsivonen, Unassigned)

Details

Nodes that implement nsIStyleSheetLinkingElement (HTML and SVG <style> and HTML <link>) require the parser to call
ssle->InitStyleLinkElement(PR_FALSE);
ssle->SetEnableUpdates(PR_FALSE);
on newly-created elements.

The HTML <script> element goes into a parser-inserted state when aFromParser==PR_TRUE on NS_NewElement().

I think nodes that implement nsIStyleSheetLinkingElement should likewise put themselves into an uninitialized and updates-disabled state if aFromParser==PR_TRUE on NS_NewElement().
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Severity: trivial → S4
You need to log in before you can comment on or make changes to this bug.