Open
Bug 441770
Opened 16 years ago
Updated 2 years ago
Add 'sizes' getter/setter to link elements
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
ASSIGNED
mozilla1.9.1
People
(Reporter: rflint, Assigned: fabrice)
References
()
Details
Attachments
(2 files, 4 obsolete files)
(deleted),
patch
|
smaug
:
review-
|
Details | Diff | Splinter Review |
(deleted),
patch
|
smaug
:
review-
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 1•16 years ago
|
||
Noticed this was a frozen interface only after writing the patch. Guess this is a Moz2 kind of thing then?
Attachment #326656 -
Flags: superreview?(jst)
Attachment #326656 -
Flags: review?(jst)
Comment 2•16 years ago
|
||
New things should go to nsIDOMNSHTMLLinkElement interface.
Comment 3•16 years ago
|
||
Comment on attachment 326656 [details] [diff] [review]
Patch
Yeah, either wait for Moz2 (and re-request reviews then), or create a new nsIDOMNSHTMLLinkElement interface that extens nsIDOMHTMLLinkElement and adds this property.
Attachment #326656 -
Flags: superreview?(jst)
Attachment #326656 -
Flags: superreview-
Attachment #326656 -
Flags: review?(jst)
Attachment #326656 -
Flags: review-
Reporter | ||
Comment 4•16 years ago
|
||
Attachment #326656 -
Attachment is obsolete: true
Attachment #343495 -
Flags: review?(Olli.Pettay)
Reporter | ||
Updated•16 years ago
|
Reporter | ||
Comment 5•16 years ago
|
||
Let's try that again with the new interface actually included in the diff this time...
Attachment #343495 -
Attachment is obsolete: true
Attachment #343496 -
Flags: review?(Olli.Pettay)
Attachment #343495 -
Flags: review?(Olli.Pettay)
Comment 6•16 years ago
|
||
Comment on attachment 343496 [details] [diff] [review]
Patch v2.1
>+[scriptable, uuid(ea4e4325-9cc4-42ac-8126-0a8c035c165a)]
>+interface nsIDOMNSHTMLLinkElement : nsISupports
>+{
>+ attribute DOMString sizes;
>+};
Make nsIDOMNSHTMLLinkElement inherit nsIDOMHTMLLinkElement and then
nsHTMLLinkElement should inherit only nsIDOMNSHTMLLinkElement.
That way you don't increase the size of the nsHTMLLinkElement
(doesn't increase vtable).
Comment 7•16 years ago
|
||
Comment on attachment 343496 [details] [diff] [review]
Patch v2.1
New patch coming?
Attachment #343496 -
Flags: review?(Olli.Pettay) → review-
Updated•14 years ago
|
Target Milestone: mozilla1.9.1 → ---
Assignee | ||
Updated•14 years ago
|
Target Milestone: --- → mozilla1.9.1
Assignee | ||
Comment 8•14 years ago
|
||
New patch, taking advantage of the now non-frozen interfaces to simply add the sizes attribute to nsIDOMHTMLLinkElement
Attachment #480372 -
Flags: review?
Assignee | ||
Updated•14 years ago
|
Attachment #480372 -
Flags: review? → review?(Olli.Pettay)
Comment 9•14 years ago
|
||
Comment on attachment 480372 [details] [diff] [review]
new patch
You should update the iid of the interface.
And where is the test?
Attachment #480372 -
Flags: review?(Olli.Pettay) → review-
Assignee | ||
Comment 10•14 years ago
|
||
Addressing issues from comment 9
Assignee: rflint → fabrice
Attachment #480372 -
Attachment is obsolete: true
Attachment #480602 -
Flags: review?(Olli.Pettay)
Assignee | ||
Comment 11•14 years ago
|
||
Sorry, I had not hg added the test case.
Attachment #480602 -
Attachment is obsolete: true
Attachment #480604 -
Flags: review?(Olli.Pettay)
Attachment #480602 -
Flags: review?(Olli.Pettay)
Comment 12•14 years ago
|
||
The IDL attribute shouldn't be a DOMString but a DOMSettableTokenList.
By the way, if you just need .sizes done this way (a simple reflection of the content attribute), you can use .getAttribute('sizes') for the moment and change that when .sizes will be implemented.
Comment 13•14 years ago
|
||
Comment on attachment 480604 [details] [diff] [review]
corrected patch
Mounir is very true.
.sizes isn't a DOMString, but DOMSettableTokenList.
Unfortunately the current HTML5 draft has [PutForwards=value] -
I think we should get rid of that.
Want to sent question to whatwg why Hixie has used
PutForwards (which is generally an indicator of an ugly API, IMHO)?
Attachment #480604 -
Flags: review?(Olli.Pettay) → review-
Updated•13 years ago
|
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•