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)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: smaug, Assigned: smaug)

Details

Attachments

(1 file, 1 obsolete file)

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:
Why not use NS_HTML_NAMESPACE from nsIElementFactory.h? And maybe fix indentation?
If this is ok, could you bz or jst check this in?
Attachment #147369 - Attachment is obsolete: true
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 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+
Erm... Won't NS_LITERAL_STRING(NS_HTML_NAMESPACE) break on compilers that use Lfoo to implement NS_LITERAL_STRING??
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
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
Assignee: general → Olli.Pettay
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: