Closed Bug 10831 Opened 25 years ago Closed 24 years ago

strangeness with empty attribute values

Categories

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

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: vidur)

References

()

Details

(Whiteboard: [nsbeta2-])

The above test shows a number of problems that all have something to do with
empty-string attribute values:

* elem.removeAttribute() doesn't remove the attribute node completely, but it
does decrease the length of the NamedNodeMap and set the attribute value to "".
It's still accessible through elem.attributes.getNamedItem() and
elem.getAttributeNode()

* elem.SetAttributeNode(attNode), where attNode.value=="", does not increment
elem.attributes.length

* elem.setAttribute("att", "") does not do anything.  It should add an attribute
node (and remove an old one if necessary - it may do that - I didn't check).

Tested on:
 * Linux 1999-07-27-08-M9
QA Contact: gerardok → ckritzer
In an attempt to get my bug list in order again, marking all the bugs I have
currently as ASSIGNED.
It'll be good to completely pass David's compatibility tests. This is not 
critical quite yet, but we'll get it for M16.
Target Milestone: M16
nominating for nsbeta2 based on:
 - visibility
 - feature (DOM Level 1 Standards Compliance) broken
Keywords: nsbeta2
Spoke with rickg - putting on [nsbeta2-] radar.  
Whiteboard: [nsbeta-]
Upating [nsbeta-] to read [nsbeta2-] in Status Whiteboard.
Whiteboard: [nsbeta-] → [nsbeta2-]
M16 has been out for a while now, these bugs target milestones need to be 
updated.
Upgraded Platform & OS to "All"
OS: Linux → All
Hardware: PC → All
The tests are all green now, closing bug.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Mass update of qa contact
QA Contact: ckritzer → janc
Component: DOM Level 1 → DOM Core
QA contact Update
QA Contact: janc → desale
Updating QA contact to Shivakiran Tummala.
QA Contact: desale → stummala
verified by loading the testcase provided at the url...build
Linux2001-06-26-21-trunk...marking as verified
Status: RESOLVED → VERIFIED
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.