Skip to content
This repository has been archived by the owner on Dec 13, 2017. It is now read-only.

Spurious "<abbr> inside value title attribute will be ignored." warning #6

Open
jessaustin opened this issue Jun 24, 2014 · 1 comment

Comments

@jessaustin
Copy link

I have a page with div like this:

  <div id="myDiv" class="vcard">
    <h3 class="fn n">
      <span class="given-name">Jane</span>
      <span> </span>
      <span class="family-name">Doe</span>
      <span>, </span>
      <abbr title="Doctor of Dental Surgery" class="honorific-suffix">D.D.S.</abbr>
    </h3>
    <div style="display:none" class="category">dentist</div>
  </div>

This seems to be correctly producing the following:

Card source #myDiv
Category dentist
Formatted name Jane Doe, D.D.S.
Given Name Jane
Family Name Doe
Honorific Suffix Doctor of Dental Surgery

However, there is also the following message:

⚠️

  <abbr> inside value
  title attribute will be ignored.

Neither the abbr nor the title are being ignored, it seems.

@kornelski
Copy link
Owner

It may be just poorly worded message.

If I remember correctly it was meant to warn that:

<abbr class=fn title=t>v</abbr>

Has value t, but

<span class=fn><abbr title=t>v</abbr></span>

Has value v.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants