comments on code validator

Patrik Eriksson <[email protected]> Mon, 20 Jul 2015 06:54:20 +0200
Newsgroups gmane.org.w3c.validator
Message-ID <[email protected]>
--_d9149d61-0075-4741-a32d-496e9d9adf0f_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

some comments about parsing errors

1.
<script type=3D"text/javascript" type=3D"application/javascript">
is reported incorrecly as having duplicate type attributes
its actually defining two MIME types for it one for older parsers
who will fail if encuntering application/javascript=20
and one for newer as text/javascript is obsolete

text/javascript is the default value - but its absolete so application/java=
script
must alwas be specified

2.
<div onmousenter=3D"something()=3B" onmouseover=3D"somethinelse()=3B" onmou=
seout=3D"somemore()=3B">
This work in all browsers since IE5 DOM1</div>

onmouseenter and such reported as not being supported on div elements at th=
is time - they are=20

3.
<iframe width=3D"100px" height=3D"100px" class=3D"mainFrame" name=3D"main" =
id=3D"mainFrame" src=3D"Page..html">
    <p>This text should never be displayed</p>
</iframe>

cases an pareser error width/height in specified in pixels when parsed as h=
tml 5/5.1
-again 100 should never be used as a measurment of pixels instead 100px sho=
uld be
(as specified by the standard)=2C in html5 it must be specified in pixels=
=2C assuming 100 means 100 pixels
and not an old html 4.xx percent value is dangerous and possibly(likely) pa=
ge breaking=2C it also is dengerous or atleast limiting for furter expansio=
n of the language=2C the only legal solution at this moment is to specify 0=
 as in zero for both width and height and use css to alter them=2C as a zer=
o value dont need any specification of whats its zero of.

...also the parser say something about negative valuse not allowed=2C well i=
frames are inline elements so negative values should be perfectly legal (ev=
en if they forces the page to reflow)=2C it makes no sense use negative val=
ues - but it should be perfectly allright to use negaive values=2C
it also semms to work as intended on tested browsers IE/Firefox.

ps. fix the typo in the specs that say screen.colorDepth always should retu=
rn 24 ....


Sincerely
Patrik Eriksson




=20
 		 	   		  =

--_d9149d61-0075-4741-a32d-496e9d9adf0f_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
..hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 12pt=3B
font-family:Calibri
}
--></style></head>
<body class=3D'hmmessage'><div dir=3D'ltr'>some comments about parsing erro=
rs<br><br>1.<br>&lt=3Bscript type=3D"text/javascript" type=3D"application/j=
avascript"&gt=3B<br>is reported incorrecly as having duplicate type attribu=
tes<br>its actually defining two MIME types for it one for older parsers<br=
>who will fail if encuntering application/javascript <br>and one for newer =
as text/javascript is obsolete<br><br>text/javascript is the default value =
- but its absolete so application/javascript<br>must alwas be specified<br>=
<br>2.<br>&lt=3Bdiv onmousenter=3D"something()=3B" onmouseover=3D"somethine=
lse()=3B" onmouseout=3D"somemore()=3B"&gt=3B<br>This work in all browsers s=
ince IE5 DOM1&lt=3B/div&gt=3B<br><br>onmouseenter and such reported as not =
being supported on div elements at this time - <b>they are <br><br></b>3.<b=
r>&lt=3Biframe width=3D"100px" height=3D"100px" class=3D"mainFrame" name=3D=
"main" id=3D"mainFrame" src=3D"Page..html"&gt=3B<br>&nbsp=3B&nbsp=3B&nbsp=
=3B &lt=3Bp&gt=3BThis text should never be displayed&lt=3B/p&gt=3B<br>&lt=
=3B/iframe&gt=3B<br><br>cases an pareser error width/height in specified in=
 pixels when parsed as html 5/5.1<br>-again 100 should never be used as a m=
easurment of pixels instead 100px should be<br>(as specified by the standar=
d)=2C in html5 it must be specified in pixels=2C assuming 100 means 100 pix=
els<br>and not an old html 4.xx percent value is dangerous and possibly(lik=
ely) page breaking=2C it also is dengerous or atleast limiting for furter e=
xpansion of the language=2C the only legal solution at this moment is to sp=
ecify 0 as in zero for both width and height and use css to alter them=2C a=
s a zero value dont need any specification of whats its zero of.<br><br>..a=
lso the parser say something about negative valuse not allowed=2C well ifra=
mes are inline elements so negative values should be perfectly legal (even =
if they forces the page to reflow)=2C it makes no sense use negative values=
 - but it should be perfectly allright to use negaive values=2C<br>it also =
semms to work as intended on tested browsers IE/Firefox.<br><br>ps. fix the=
 typo in the specs that say screen.colorDepth always should return 24 ....<=
br><br><br>Sincerely<br>Patrik Eriksson<br><br><br><br><br>&nbsp=3B<br> 		 =
	   		  </div></body>
</html>=

--_d9149d61-0075-4741-a32d-496e9d9adf0f_--