stratux icon indicating copy to clipboard operation
stratux copied to clipboard

HTML errors

Open garyemiller opened this issue 8 years ago • 11 comments
trafficstars

https://validator.w3.org/ finds html warnings and errors in /var/www/plates.index.html

See this screenshot of validator output:

screenshot-validator w3 org-2017-06-27-15-53-25

garyemiller avatar Jun 27 '17 22:06 garyemiller

It looks like the HTML evaluator hasn't been updated in about 4 years either.

JohnOCFII avatar Jul 05 '17 13:07 JohnOCFII

There is no such thing as 'mobile html' there is only 'valid html. The way the Stratux JS is done is counter to the HTML specification.

garyemiller avatar Jul 05 '17 16:07 garyemiller

'industry standard'? Can you point me to an RFC, or other similar standard?

I am familiar with the 'HTML Standard', provided by the w3c.org. I'd be happy to point out specifics how Startux conflicts with the published international HTML Standard.

garyemiller avatar Jul 05 '17 18:07 garyemiller

So we agree the Stratux code does not comply with the HTML industry standard?

garyemiller avatar Jul 05 '17 19:07 garyemiller

And the stratux html appears to lag behind even more. It still has XHTML cruft that was removed years ago from the HTML standard.

garyemiller avatar Jul 05 '17 20:07 garyemiller

I'm sure a working Pull Request would be graciously accepted.

JohnOCFII avatar Jul 05 '17 20:07 JohnOCFII

(consolidated prior comments - if I deleted a comment which was not my own, I apologize, I only meant to consolidate my own comments)

"Industry standards ... the generally accepted requirements followed by the members of an industry."

The validator website generates validation errors. :-)

If contributors feel these validation messages are important, fork the project, make the corrections, and submit a pull request.

bradanlane avatar Jul 05 '17 20:07 bradanlane

"The validator website generates validation errors. :-)"

Uh, no: https://validator.w3.org/check?uri=https%3A%2F%2Fvalidator.w3.org&charset=%28detect+automatically%29&doctype=Inline&group=0&verbose=1&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices

garyemiller avatar Jul 05 '17 20:07 garyemiller

I stand corrected. I Used the "https://validator.w3.org/nu/" validator.

And again, I apologize for accidentally deleting a comment which was not my own. I didn't think that was possible.

bradanlane avatar Jul 05 '17 20:07 bradanlane

I checked a branched settings.html on both checkers (including the /nu) and they both report errors. I don't mind noodling around to try to reduce the reported errors. But to do that, I need to know what doctype the Stratux wants to use. ~~(And this might already be declared somewhere ... I seem to recall that there was a master webpage for the Stratux UI, and then html was swapped in and out of it.)~~ Never mind. Found it in the index.html page. (Duh.)

Ergonomicmike avatar Jul 08 '17 01:07 Ergonomicmike

So, the first place to start cleaning up - if, in fact, it is necessary, and if the team wants to do it - is with the index.html page. For if it's not right, none of the sub pages that script into it will be either. I remember a year or two ago that the appcache thing was done for good reason. I don't know anything about 'service workers.' This sounds like it might be more than just HTML clean up.

On some of the other error reports, it seems like maybe it's as simple as hyphens aren't allowed in div labels? Even if it's as simple as that, this could become an quite a project, trying to find and retie loose ends.

Ergonomicmike avatar Jul 08 '17 01:07 Ergonomicmike