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

Re^5: Understanding this particular Regex.

by ww (Archbishop)
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).

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1032322]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2018-03-25 01:24 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (299 votes). Check out past polls.