Closed
Bug 242151
Opened 21 years ago
Closed 21 years ago
document.body does not handle frameset properly if the document is XHTML
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: smaug, Assigned: smaug)
Details
Attachments
(1 file, 1 obsolete file)
1.36 KB,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
patch coming
Reproducible: Always
Steps to Reproduce:
Assignee | ||
Comment 1•21 years ago
|
||
![]() |
||
Comment 2•21 years ago
|
||
Why not use NS_HTML_NAMESPACE from nsIElementFactory.h? And maybe fix indentation?
Assignee | ||
Comment 3•21 years ago
|
||
If this is ok, could you bz or jst check this in?
Attachment #147369 -
Attachment is obsolete: true
Assignee | ||
Comment 4•21 years ago
|
||
Comment on attachment 147393 [details] [diff] [review]
uses NS_HTML_NAMESPACE
maybe r+sr is enough
Attachment #147393 -
Flags: superreview?(jst)
Attachment #147393 -
Flags: review?(jst)
Comment 5•21 years ago
|
||
Comment on attachment 147393 [details] [diff] [review]
uses NS_HTML_NAMESPACE
+ if (IsXHTML())
+ rv = GetElementsByTagNameNS(NS_LITERAL_STRING(NS_HTML_NAMESPACE),
+ NS_LITERAL_STRING("frameset"),
+ getter_AddRefs(nodeList));
+ else
+ rv = GetElementsByTagName(NS_LITERAL_STRING("frameset"),
getter_AddRefs(nodeList));
Bad next-line indentation.
r+sr=jst
I fixed the indentation, and also consolidated some error handling to save a
byte or two of code. Checking in.
Attachment #147393 -
Flags: superreview?(jst)
Attachment #147393 -
Flags: superreview+
Attachment #147393 -
Flags: review?(jst)
Attachment #147393 -
Flags: review+
![]() |
||
Comment 6•21 years ago
|
||
Erm... Won't NS_LITERAL_STRING(NS_HTML_NAMESPACE) break on compilers that use
Lfoo to implement NS_LITERAL_STRING??
Comment 7•21 years ago
|
||
Do we care? IIRC we do that elsewhere too. This is checked in, all tinderboxes
are green, including all ports.
Marking FIXED. Reopen if you think this is worth changing.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Assignee: general → Olli.Pettay
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•