Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: Understanding this particular Regex.

by ww (Bishop)
on May 06, 2013 at 15:14 UTC ( #1032322=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Understanding this particular Regex.
in thread Understanding this particular Regex.

Generally, ++ tobyink but we still disagree on more points than the limited number to which I'm inclined to create well-documented counters.

But your question/rhetorical question, "You think modern browsers don't support HTML 4.01?" is just the opposite of my intent. Of course they do... but when the cited browsers were "the latest and greatest" we saw an awful lot of utterly non-compliant markup because devs were pushing out code that satisfied a particular browser (only). Think, also, of how commonly we used to see "<table width = 347...>", with only an implicit "px" -- i.e. code relying, mistakenly, on sometimes inconsistent calculations by various browsers).


Comment on Re^5: Understanding this particular Regex.
Download Code
Re^6: Understanding this particular Regex.
by tobyink (Abbot) on May 06, 2013 at 16:12 UTC

    <table width = 347> is valid HTML. <table width="347px"> is invalid.

    The px unit is part of CSS; not HTML. In HTML, all sizes are expressed as either percentages, or a number which is implicitly in pixels. (Except <font size> where the number has its own special brand of craziness.)

    I agree that there's a lot of invalid HTML out there, and certain older browsers encouraged it, but the OP's example is valid (albeit unidiomatic) HTML.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1032322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-12-19 01:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (70 votes), past polls