Changeset 176213 in webkit
- Timestamp:
- Nov 17, 2014 11:24:52 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r176209 r176213 1 2014-11-17 Shivakumar JM <shiva.jm@samsung.com> 2 3 Attribute text in HTMLAnchorElement should behave as per specification. 4 https://bugs.webkit.org/show_bug.cgi?id=138557 5 6 Reviewed by Darin Adler. 7 8 * fast/dom/HTMLAnchorElement/anchor-text-attribute-expected.txt: Added. 9 * fast/dom/HTMLAnchorElement/anchor-text-attribute.html: Added. 10 1 11 2014-11-17 Alexey Proskuryakov <ap@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r176212 r176213 1 2014-11-17 Shivakumar JM <shiva.jm@samsung.com> 2 3 Attribute text in HTMLAnchorElement should behave as per specification. 4 https://bugs.webkit.org/show_bug.cgi?id=138557 5 6 Reviewed by Darin Adler. 7 8 attribute text in HTMLAnchorElement should not be readonly as per specification 9 http://www.w3.org/TR/html/text-level-semantics.html#dom-a-text. It should behave as textContent attribute. 10 Also This matches the behavior of Chrome 38 and FireFox. 11 12 Test: fast/dom/HTMLAnchorElement/anchor-text-attribute.html 13 14 * html/HTMLAnchorElement.cpp: 15 (WebCore::HTMLAnchorElement::text): 16 (WebCore::HTMLAnchorElement::setText): 17 * html/HTMLAnchorElement.h: 18 * html/HTMLAnchorElement.idl: 19 1 20 2014-11-17 Chris Dumez <cdumez@apple.com> 2 21 -
trunk/Source/WebCore/html/HTMLAnchorElement.cpp
r176208 r176213 505 505 String HTMLAnchorElement::text() 506 506 { 507 return innerText(); 507 return textContent(); 508 } 509 510 void HTMLAnchorElement::setText(const String& text, ExceptionCode& ec) 511 { 512 setTextContent(text, ec); 508 513 } 509 514 -
trunk/Source/WebCore/html/HTMLAnchorElement.h
r176208 r176213 92 92 93 93 String text(); 94 void setText(const String&, ExceptionCode&); 94 95 95 96 String toString() const; -
trunk/Source/WebCore/html/HTMLAnchorElement.idl
r176208 r176213 45 45 readonly attribute DOMString protocol; 46 46 readonly attribute DOMString search; 47 readonly attribute DOMString text; 47 48 #else 48 49 [TreatNullAs=NullString] attribute DOMString hash; … … 53 54 [TreatNullAs=NullString] attribute DOMString protocol; 54 55 [TreatNullAs=NullString] attribute DOMString search; 55 56 56 [TreatNullAs=NullString] readonly attribute DOMString origin; 57 [SetterRaisesException] attribute DOMString text; 57 58 #endif 58 59 readonly attribute DOMString text;60 59 61 60 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
Note: See TracChangeset
for help on using the changeset viewer.