logo       

[ tidy-Bugs-1820496 ] button inside label throws a warning: msg#00011

web.html-tidy.tracker

Subject: [ tidy-Bugs-1820496 ] button inside label throws a warning

Bugs item #1820496, was opened at 2007-10-26 00:42
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1820496&group_id=27659

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: HTML/XHTML Parser
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: button inside label throws a warning

Initial Comment:
---snip---

<label for="d_id" accesskey="d">Sen<span
style="text-decoration:underline;"><button id="d_id" name="d" value="send"
type="submit" title="Click to send your message">d</span></button></label>

---snip---

throws a warning - placing label inside button fixes this, but w3c validator
throws error...

dave@xxxxxxxxxx

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-02-28 08:20

Message:
Logged In: NO

Am I blind of this is invalid html ?
You open span then button then close span inside button...
How is that possible to post such weird code and request anything ?!

But warning really happens if wrap button into ANY inline tag like SPAN or
A or any other.
Next html will generate 3 warnings:
<p><span><button type="button">Test</button></span></p>

- Warning: inserting implicit <span>
- Warning: replacing unexpected button by </button>
- Warning: missing </button>

I terribly hate this bug...



----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1820496&group_id=27659

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise