WHATWG HTML5-spec multipage redirect

  • strict warning: Non-static method view::load() should not be called statically in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/views.module on line 879.
  • strict warning: Declaration of views_handler_argument::init() should be compatible with views_handler::init(&$view, $options) in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/handlers/views_handler_argument.inc on line 745.
  • strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/handlers/views_handler_filter.inc on line 589.
  • strict warning: Declaration of views_handler_filter::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/handlers/views_handler_filter.inc on line 589.
  • strict warning: Declaration of views_plugin_style_default::options() should be compatible with views_object::options() in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/plugins/views_plugin_style_default.inc on line 25.
  • strict warning: Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.
  • strict warning: Declaration of views_plugin_row::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.
  • strict warning: Non-static method view::load() should not be called statically in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/views.module on line 879.
  • strict warning: Non-static method view::load() should not be called statically in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/views.module on line 879.
  • strict warning: Non-static method view::load() should not be called statically in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/views.module on line 879.
  • strict warning: Non-static method view::load() should not be called statically in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/views.module on line 879.
  • strict warning: Non-static method views_many_to_one_helper::option_definition() should not be called statically, assuming $this from incompatible context in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/handlers/views_handler_argument_many_to_one.inc on line 36.
  • strict warning: Non-static method views_many_to_one_helper::option_definition() should not be called statically, assuming $this from incompatible context in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/handlers/views_handler_argument_many_to_one.inc on line 36.
  • strict warning: Non-static method view::load() should not be called statically in /home/zotlan/domains/extendopera.org/public_html/sites/all/modules/views/views.module on line 879.
This script simply redirects all links pointing at the main (enormous single page) HTML5 spec to the (sane) multi-page spec.

This probably won't have a huge audience as reading W3C/WHATWG specifications is not of interest to most (though it really should be if you're a client-side web developer). I was growing increasingly annoyed when clicking links to the poorly designed, abominably large single-page version of the spec, so I wrote this quick little script.

Note: Only links to sections listed in the table of contents are redirected. Since there are literally thousands of fragment ID's throughout the page, not all of which are listed in contents - these won't be redirected.

Syndicate content

Tested with Opera version(s): 
10.0
10.10
Your rating: None Average: 4 (2 votes)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

An interesting idea.

An interesting idea.

Intelligent alien life does exist, otherwise they would have contacted us.

possible enhancement

Random observer comment: could you build mp[] on the fly by loading http://www.whatwg.org/specs/web-apps/current-work/multipage/index.html?  You could load it into a hidden frame or something, then just check it for a reference to the one frag you're trying to reach.  I imagine this would be a little bit slower, but not much (and nothing compared to loading the single-page version).  The benefits would be instant reactivity to changed fragment structure on the site, less bulky and more static userjs script.  Also probably a little easier to retarget to the next annoying single-vs-multi-page site.

(random arrival by: looking up lucideer because I am fiddling around with his mouse gestures userjs.  I wish to upload or send back an updated version of that script, without necessarily becoming its default maintainer nor stepping on lucideer's toes.  you can email me @armory.com, username filbo; same name on my.opera.com, but I check mail there much less often.)

>Bela<

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

By submitting this form, you accept the Mollom privacy policy.