Changeset 245900 in webkit
- Timestamp:
- May 30, 2019, 12:41:53 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
LayoutTests/fast/dom/linkify-phone-numbers-expected.html (added)
-
LayoutTests/fast/dom/linkify-phone-numbers.html (added)
-
LayoutTests/platform/ios/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/parser/HTMLTreeBuilder.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r245887 r245900 1 2019-05-30 Zalan Bujtas <zalan@apple.com> 2 3 [iOS] Do not linkify telephone numbers inside <a> elements. 4 https://bugs.webkit.org/show_bug.cgi?id=198378 5 6 Reviewed by Chris Dumez. 7 8 * fast/dom/linkify-phone-numbers-expected.html: Added. 9 * fast/dom/linkify-phone-numbers.html: Added. 10 1 11 2019-05-30 Jer Noble <jer.noble@apple.com> 2 12 -
trunk/LayoutTests/TestExpectations
r245623 r245900 3102 3102 3103 3103 webkit.org/b/198103 imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/offsets-into-the-media-resource/currentTime.html [ Pass Failure ] 3104 3105 # iOS only 3106 fast/dom/linkify-phone-numbers.html [ ImageOnlyFailure ] -
trunk/LayoutTests/platform/ios/TestExpectations
r245483 r245900 2225 2225 webkit.org/b/148806 imported/w3c/web-platform-tests/css/css-multicol/multicol-span-all-margin-nested-firstchild-001.xht [ ImageOnlyFailure ] 2226 2226 2227 # Enable "phone number linkifying" test for iOS 2228 fast/dom/linkify-phone-numbers.html [ Pass ] 2229 2227 2230 # Enable "aria-current" test for iOS 2228 2231 webkit.org/b/149297 accessibility/aria-current.html [ Pass ] -
trunk/Source/WebCore/ChangeLog
r245897 r245900 1 2019-05-30 Zalan Bujtas <zalan@apple.com> 2 3 [iOS] Do not linkify telephone numbers inside <a> elements. 4 https://bugs.webkit.org/show_bug.cgi?id=198378 5 6 Reviewed by Chris Dumez. 7 8 Phone number linkifying mutates the DOM in a potentially unexpected way triggering different kinds of failures with JS, CSS selectors etc. 9 This patch tightens the linkifying rule so that content inside an <a> element won't get linkified even when the <a> has no valid href attribute. 10 11 Test: fast/dom/linkify-phone-numbers.html 12 13 * html/parser/HTMLTreeBuilder.cpp: 14 (WebCore::disallowTelephoneNumberParsing): 15 1 16 2019-05-30 Truitt Savell <tsavell@apple.com> 2 17 -
trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp
r243782 r245900 2259 2259 { 2260 2260 return node.isLink() 2261 || node.hasTagName(aTag) 2261 2262 || node.hasTagName(scriptTag) 2262 2263 || is<HTMLFormControlElement>(node)
Note:
See TracChangeset
for help on using the changeset viewer.