Parent Directory
|
Revision Log
++ whatpm/t/ChangeLog 23 Jun 2007 16:36:55 -0000 * tree-test-1.dat: Some test results are changed since <base>, <link>, and <meta> in body are no longer appended to the head element pointer (HTML5 revision 935). * content-model-2.dat: Tests for |scoped| attribute are added (HTML5 revision 938). 2007-06-24 Wakaba <wakaba@suika.fam.cx> ++ whatpm/Whatpm/ChangeLog 23 Jun 2007 16:37:20 -0000 * HTML.pm.src: HTML5 revision 935 (<base>, <link>, <meta> in body). * ContentChecker.pm: HTML5 revision 938 (scoped=""). 2007-06-24 Wakaba <wakaba@suika.fam.cx>
| 1 | package Whatpm::HTML; |
| 2 | use strict; |
| 3 | our $VERSION=do{my @r=(q$Revision: 1.23 $=~/\d+/g);sprintf "%d."."%02d" x $#r,@r}; |
| 4 | |
| 5 | ## ISSUE: |
| 6 | ## var doc = implementation.createDocument (null, null, null); |
| 7 | ## doc.write (''); |
| 8 | ## alert (doc.compatMode); |
| 9 | |
| 10 | my $permitted_slash_tag_name = { |
| 11 | base => 1, |
| 12 | link => 1, |
| 13 | meta => 1, |
| 14 | hr => 1, |
| 15 | br => 1, |
| 16 | img=> 1, |
| 17 | embed => 1, |
| 18 | param => 1, |
| 19 | area => 1, |
| 20 | col => 1, |
| 21 | input => 1, |
| 22 | }; |
| 23 | |
| 24 | my $c1_entity_char = { |
| 25 | 0x80 => 0x20AC, |
| 26 | 0x81 => 0xFFFD, |
| 27 | 0x82 => 0x201A, |
| 28 | 0x83 => 0x0192, |
| 29 | 0x84 => 0x201E, |
| 30 | 0x85 => 0x2026, |
| 31 | 0x86 => 0x2020, |
| 32 | 0x87 => 0x2021, |
| 33 | 0x88 => 0x02C6, |