Closed
Bug 905240
Opened 11 years ago
Closed 11 years ago
HTMLInputElement.{width,height} getter should return 0 for type!='image'
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: mounir, Assigned: mounir)
Details
(Keywords: dev-doc-complete, site-compat)
Attachments
(1 file)
4.78 KB,
patch
|
Ms2ger
:
review+
|
Details | Diff | Splinter Review |
That is what Blink and the specifications seem to do. Have not checked IE and Webkit though. I assumes that the specification specified the sanest behaviour.
Attachment #790298 -
Flags: review?(Ms2ger)
Updated•11 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 1•11 years ago
|
||
This is passing try: https://tbpl.mozilla.org/?tree=Try&rev=58a8efe8547d
Comment 2•11 years ago
|
||
Comment on attachment 790298 [details] [diff] [review]
Pach
Review of attachment 790298 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks, and sorry for the delay.
::: content/html/content/test/forms/test_input_attributes_reflection.html
@@ +28,5 @@
> + element[attr] = 12;
> + is(element.getAttribute(attr), '12', 'setting ' + attr + ' changes the content attribute');
> +
> + element.removeAttribute(attr);
> + is(element.getAttribute(attr), null);
Please use ise() when comparing to null
@@ +36,5 @@
> + document.getElementById('content').appendChild(element);
> + isnot(element[attr], 0, attr + ' represents the dimension of the element if type=image');
> +
> + element.setAttribute(attr, '42');
> + isnot(element[attr], 0, attr + ' represents the dimension of the element if type=image');
Consider also testing that it doesn't return 42
Attachment #790298 -
Flags: review?(Ms2ger) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Flags: in-testsuite+
Target Milestone: --- → mozilla26
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 5•11 years ago
|
||
Keywords: dev-doc-complete,
site-compat
Updated•11 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•