Closed
Bug 499092
Opened 15 years ago
Closed 15 years ago
Prefixed XML namespace (xhtml)
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a2
People
(Reporter: lfournie, Assigned: Ms2ger)
Details
Attachments
(1 file, 1 obsolete file)
4.14 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1pre) Gecko/20090617 Shiretoko/3.5pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1pre) Gecko/20090617 Shiretoko/3.5pre The xhtml title tag reports a Window title in FF only if the namespace is not prefixed. I don't know if this bug is limited to xhtml or also found in any namespace. Reproducible: Always Steps to Reproduce: Load the two following XML files in FF: <?xml version="1.0"?> <doc xmlns:aa="http://www.w3.org/1999/xhtml"> <aa:title>OK</aa:title> </doc> <?xml version="1.0"?> <doc xmlns="http://www.w3.org/1999/xhtml"> <title>OK</title> </doc> Actual Results: The second file displays a 'OK' window title in FF while the first file does not display any title. Expected Results: A window title with a xhtml prefixed namespace I need a prefix because I am using several namespaces (xhtml+xlink) in my real application and I did not found a workarround to make clicable xlink in a xhtml document.
Updated•15 years ago
|
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → parser
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → Ms2ger
Status: UNCONFIRMED → ASSIGNED
Component: HTML: Parser → DOM: Core & HTML
Ever confirmed: true
OS: Windows XP → All
QA Contact: parser → general
Hardware: x86 → All
Version: unspecified → Trunk
Assignee | ||
Comment 1•15 years ago
|
||
Attachment #425716 -
Flags: review?(jonas)
Comment on attachment 425716 [details] [diff] [review] Patch >diff -r 92d646229908 -r 14846ba17b53 content/base/src/nsDocument.cpp >--- a/content/base/src/nsDocument.cpp Sun Feb 07 14:47:06 2010 +0100 >+++ b/content/base/src/nsDocument.cpp Sun Feb 07 19:48:27 2010 +0100 >@@ -5039,17 +5039,17 @@ nsDocument::GetTitleContent(PRUint32 aNa > // <title> element has been bound to this document. So if it's false, > // we know there is nothing to do here. This avoids us having to search > // the whole DOM if someone calls document.title on a large document > // without a title. > if (!mMayHaveTitleElement) > return nsnull; > > nsRefPtr<nsContentList> list = >- NS_GetContentList(this, nsGkAtoms::title, kNameSpaceID_Unknown); >+ NS_GetContentList(this, nsGkAtoms::title, kNameSpaceID_Wildcard); Just pass in aNamespace as third argument. That way you can just grab the first element in the resulting list and not have to loop through to find one with the appropriate namespace.
Attachment #425716 -
Flags: review?(jonas) → review-
Assignee | ||
Comment 3•15 years ago
|
||
With comment addressed
Attachment #425716 -
Attachment is obsolete: true
Attachment #426315 -
Flags: review?
Assignee | ||
Updated•15 years ago
|
Attachment #426315 -
Flags: review? → review?(jonas)
Comment on attachment 426315 [details] [diff] [review] Patch v2 Thanks! Looks great!
Attachment #426315 -
Flags: review?(jonas) → review+
What name do you want me to use as the patch author for the checkin comment?
Assignee | ||
Comment 6•15 years ago
|
||
"Ms2ger", please. Thanks for your time!
Checked in. Thanks for the patch, sorry it took so long to get checked in. http://hg.mozilla.org/mozilla-central/rev/e75531fda63e
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•14 years ago
|
Flags: in-testsuite+
Target Milestone: --- → mozilla1.9.3a2
You need to log in
before you can comment on or make changes to this bug.
Description
•