Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I prefer the current PM algorithm for normalizing user HTML over tagsoup's. We could add more knowledge about allowed parent tags but such would be used to escape tags that aren't in the proper parent rather than to close and reopen tags.

And I feel quite strongly that the priority of goals should weigh practical matters much, much higher than technical milestones like strict compliance with a standard.

For example, <p> tags will probably never be forced to be strictly nested because there is no practical way to accomplish this given the current state of users and browsers.

The disadvantage that this prevents using a (compliant) XML parser on some filtered user HTML w/o first filtering <p> tags is a practical disadvantage but of less importance than the practical advantage of allowing people to easily enter their own HTML mark-up that displays well for most of our audience.

While the disadvantage of <p> tags not strictly complying with any particular standard is not a practical matter. Strict compliance can lead to practical benefits but complance itself is not a practical benefit. So strict compliance can be desirable for many reasons such as setting a good example, geeky pride, pedantic intollerance, etc., but such concerns don't even cast a shadow IMO compared to even relatively minor practical advantages if such conflict with each other.

- tye        


In reply to Re^3: let's have valid html (algo & goals) by tye
in thread let's have valid html by particle

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-24 05:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found