Closed
Bug 232591
Opened 21 years ago
Closed 21 years ago
Expose name validation methods from the XML parser (expat)
Categories
(Core :: XML, defect, P3)
Core
XML
Tracking
()
RESOLVED
FIXED
mozilla1.7alpha
People
(Reporter: jst, Assigned: peterv)
References
Details
Attachments
(2 files, 1 obsolete file)
9.38 KB,
patch
|
axel
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
35.24 KB,
patch
|
axel
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
We've got bugs in our code due to the lack of code that can check if a string is
a valid XML name (qname or just name, etc). It'd be totally cool if the XML
parser could expose such functionality, since it already has it, for sure.
ideally nsIExpatSink should have namespaced methods rather then the current ones
IMHO. That way we wouldn't need to resolve namespaces in so many different
codepaths.
Btw, i just noticed yesterday that xul-sink sets the wrong namespace to
attributes named 'xmlns' (kNameSpaceID_None rather then kNameSpaceID_XMLNS)
Reporter | ||
Comment 2•21 years ago
|
||
True, but we still need this for validation of names in places like
document.createElement() etc.
Assignee | ||
Comment 3•21 years ago
|
||
Assignee | ||
Comment 4•21 years ago
|
||
This converts Transformiix to use the new stuff and removes the implementation
that we had in Transformiix.
Assignee | ||
Comment 5•21 years ago
|
||
Comment on attachment 140449 [details] [diff] [review]
v1 (expat/htmlparser)
What do you think? Note that I have a patch for bug 16603 that adds the
necessary calls to all the DOM methods that need this (I'm holding off on
attaching that until we finalize this one).
Attachment #140449 -
Flags: superreview?(jst)
Comment 6•21 years ago
|
||
tx part looks good to me
Reporter | ||
Comment 7•21 years ago
|
||
Comment on attachment 140449 [details] [diff] [review]
v1 (expat/htmlparser)
sr=jst
Attachment #140449 -
Flags: superreview?(jst) → superreview+
Comment on attachment 140450 [details] [diff] [review]
v1 (transformiix)
mmmm... coderemoval
Assignee | ||
Comment 9•21 years ago
|
||
Much to my surprise, when running XSLBench (not a really good testcase for these
changes, but anyway) almost all tests got a very small speedup.
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.7alpha
Assignee | ||
Updated•21 years ago
|
Attachment #140449 -
Flags: review?(axel)
Assignee | ||
Comment 10•21 years ago
|
||
Now with Makefiles
Attachment #140450 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #140548 -
Flags: superreview?(jst)
Attachment #140548 -
Flags: review?(axel)
Updated•21 years ago
|
Attachment #140449 -
Flags: review?(axel) → review+
Reporter | ||
Comment 11•21 years ago
|
||
Comment on attachment 140548 [details] [diff] [review]
v1 (transformiix)
sr=jst
Attachment #140548 -
Flags: superreview?(jst) → superreview+
Updated•21 years ago
|
Attachment #140548 -
Flags: review?(axel) → review+
Assignee | ||
Updated•21 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•