Closed Bug 106565 Opened 23 years ago Closed 23 years ago

SetInnerHTML always uses quirks mode

Categories

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

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(2 files, 2 obsolete files)

Setting innerHTML on an element always parses the string in quirks mode.

Testcase coming up.
Attached file testcase (obsolete) —
Attachment #54959 - Attachment description: better testcase → better testcase -- nothing should show up in the content area
Attached patch Patch to fix this (obsolete) — Splinter Review
Harish, this involves some parser changes that you should take a look at...
Could you, please?
Status: NEW → ASSIGNED
Keywords: patch, review
Target Milestone: --- → mozilla0.9.6
Boris: Sure I will take a look....but not right away :-( .... since I'm
currently focusing on a performance issue.
Ok.  This is not a big deal, really.  Few sites depend on strict comment parsing
in innerHTML.  :)
Target Milestone: mozilla0.9.6 → mozilla0.9.8
Comment on attachment 55009 [details] [diff] [review]
Patch to fix this

may the default mode should be auto. With that r=harishd.
Attachment #55009 - Flags: review+
Keywords: reviewapproval
Priority: -- → P1
Target Milestone: mozilla0.9.8 → mozilla0.9.7
Attachment #54952 - Attachment is obsolete: true
Attachment #55009 - Attachment is obsolete: true
Comment on attachment 58059 [details] [diff] [review]
patch that uses GetOwnerDocument instead of nodeinfo in nsRange (no parser changes from last patch)

sr=jst
Attachment #58059 - Flags: superreview+
checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
QA Contact: lchiang → ian
v using test cases
Status: RESOLVED → VERIFIED
Component: DOM: Mozilla Extensions → DOM
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: