Background

Last week I wrote Syntax-highlight Non-Perl Code for HTML which I posted in Cool Uses for Perl.

The first line contained the abbreviation CRPG. I provided a tooltip for this using the title attribute, like so:

<span title="Computer Role Playing Game">CRPG</span>

The tooltip showed up in both the [preview] and [create] renderings. Everything looked fine and I thought no more about it.

That post was front-paged and I've just noticed that the version in The Monastery Gates listing (under New Cool Uses for Perl) had no tooltip for CRPG.

I checked the source HTML in Syntax-highlight Non-Perl Code for HTML which had, as expected:

<span title="Computer Role Playing Game">CRPG</span>

I then checked the source HTML in The Monastery Gates which had, not as expected:

<span>CRPG</span>

And now, while previewing this post, I also notice that the listing in Cool Uses for Perl has no tooltip either (source HTML: <span>CRPG</span>).

That's now potentially becoming somewhat confusing. To summarize (and clarify):

Node ID Node Name Tooltip Source HTML
1132421 Syntax-highlight Non-Perl Code for HTML Yes <span title="Computer Role Playing Game">CRPG</span>
131 The Monastery Gates No <span>CRPG</span>
1044 Cool Uses for Perl No <span>CRPG</span>

So, while that's two PerlMonks Sections that I was able to check, this could also be happening in other sections.

Questions

Is the title attribute (and value) intentionally removed from the listings in PerlMonks Sections? If so, what is the rationale behind this? Are attributes other than title affected? Are elements other than span affected?

If this attribute was not intentionally removed then, presumably, that indicates a problem somewhere in the process of listing a post in various PerlMonks Sections. If this is the case, can it be fixed?

-- Ken


In reply to Attribute Removed When Post is Listed in a PerlMonks Section by kcott

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.