Krinkle has uploaded a new change for review. https://gerrit.wikimedia.org/r/190650
Change subject: Replace dev.w3.org with more permanent or stable urls ...................................................................... Replace dev.w3.org with more permanent or stable urls * Sanitizer: dev.w3.org/html5/spec-preview Follows-up 8e8b15afc6. Use stable reference to www.w3.org/TR/html5 instead (currently from October 2014) instead of an old preview branch from 2012. * parserTests: dev.w3.org/html5 Follows-up 959aa336a1. Url is now a dead end. Replaced with link to a draft from around that time. The relevant section no longer exists in the curent spec as it got split off into a separate spec. Maybe this one: https://url.spec.whatwg.org/#percent-encoded-bytes * Parser, HTMLIntField: dev.w3.org/html5 Use stable reference to www.w3.org/TR/html5 instead. * HTMLFloatField.php: dev.w3.org/html5 Url is now a dead end. Draft from around that time: http://www.w3.org/TR/2011/WD-html5-20110525/common-microsyntaxes.html#real-numbers The section "Real numbers" no longer exists in the current spec, but the Infrastructure chapter has a section on floating point numbers that describes the same sequence now. Change-Id: I7dcd49b6cd39785fb1b294e4eeaf39bda52337b2 --- M includes/Sanitizer.php M includes/htmlform/HTMLFloatField.php M includes/htmlform/HTMLIntField.php M includes/parser/Parser.php M tests/parser/parserTests.txt 5 files changed, 5 insertions(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/50/190650/1 diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index a2de004..f215f5f 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -41,7 +41,7 @@ /** * Acceptable tag name charset from HTML5 parsing spec - * http://dev.w3.org/html5/spec-preview/tokenization.html#tag-open-state + * http://www.w3.org/TR/html5/syntax.html#tag-open-state */ const ELEMENT_BITS_REGEX = '!^(/?)([A-Za-z][^\t\n\v />\0]*+)([^>]*?)(/?>)([^<]*)$!'; diff --git a/includes/htmlform/HTMLFloatField.php b/includes/htmlform/HTMLFloatField.php index 3b38fbe..2ef4978 100644 --- a/includes/htmlform/HTMLFloatField.php +++ b/includes/htmlform/HTMLFloatField.php @@ -17,7 +17,7 @@ $value = trim( $value ); - # http://dev.w3.org/html5/spec/common-microsyntaxes.html#real-numbers + # http://www.w3.org/TR/html5/infrastructure.html#floating-point-numbers # with the addition that a leading '+' sign is ok. if ( !preg_match( '/^((\+|\-)?\d+(\.\d+)?(E(\+|\-)?\d+)?)?$/i', $value ) ) { return $this->msg( 'htmlform-float-invalid' )->parseAsBlock(); diff --git a/includes/htmlform/HTMLIntField.php b/includes/htmlform/HTMLIntField.php index d0ee13b..b0148d9 100644 --- a/includes/htmlform/HTMLIntField.php +++ b/includes/htmlform/HTMLIntField.php @@ -11,7 +11,7 @@ return $p; } - # http://dev.w3.org/html5/spec/common-microsyntaxes.html#signed-integers + # http://www.w3.org/TR/html5/infrastructure.html#signed-integers # with the addition that a leading '+' sign is ok. Note that leading zeros # are fine, and will be left in the input, which is useful for things like # phone numbers when you know that they are integers (the HTML5 type=tel diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 46ba4b4..7884ca5 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -4580,7 +4580,7 @@ # HTML names must be case-insensitively unique (bug 10721). # This does not apply to Unicode characters per - # http://dev.w3.org/html5/spec/infrastructure.html#case-sensitivity-and-string-comparison + # http://www.w3.org/TR/html5/infrastructure.html#case-sensitivity-and-string-comparison # @todo FIXME: We may be changing them depending on the current locale. $arrayKey = strtolower( $safeHeadline ); if ( $legacyHeadline === false ) { diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 0d632c5..d9831e3 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -4684,7 +4684,7 @@ <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a></p> !! end -# According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain +# According to http://www.w3.org/TR/2011/WD-html5-20110525/Overview.html#parsing-urls a plain # % is actually legal in HTML5. Any change in output would need testing though. !! test Bug 4781, 5267: %25 in URL -- To view, visit https://gerrit.wikimedia.org/r/190650 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7dcd49b6cd39785fb1b294e4eeaf39bda52337b2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Krinkle <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
