Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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]
[jedikaiti]: 'elo Monks
[perldigious]: https://www.xkcd. com/1876/
[perldigious]: https://www.xkcd. com/1877/
[perldigious]: Good times. :-)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2017-08-16 15:39 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (269 votes). Check out past polls.