| Index
» Projects
» phpMyEdit
» Forum
» Validating html - navop disabled |
 |
devilman
Joined: 27 Apr 2009
Posts: 3
Posted: 2009-04-27 10:13
Back to top
Reply with quote
|
Hi,
I'm currently trying to make sure that as many of my pages validate as possible but I'm coming unstuck when the nav buttons are disabled (due to there only being a few records on that page). For example -
<input disabled="disabled" type="submit" class="pme-next" name="PME_sys_disabled="disabled"navop" value=">" />
Looking in phpMyEdit.class.php it seems to be this part -
| Code: |
$ret = '<input'.$markdisabled.' type="submit" class="'.$css_class_name
.'" name="'.$this->cgi['prefix']['sys'].ltrim($markdisabled).$name
.'" value="'.(isset($this->labels[$label]) ? $this->labels[$label] : $label); |
I assume it's the .$name part that's putting the navop in there? Does it need to be there?
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2009-04-29 14:52
Back to top
Reply with quote
|
Please re-state the goal and the problem.
|
devilman
Joined: 27 Apr 2009
Posts: 3
Posted: 2009-04-29 15:02
Back to top
Reply with quote
|
Sorry, I'll try and make myself clearer.
Using the validator at w3.org, I wanted to try and make my site compliant but one of the errors is -
an attribute value literal can occur in an attribute specification list only after a VI delimiter
...st" name="PME_sys_disabled="disabled"navop" value="<<" />
Have you forgotten the "equal" sign marking the separation between the attribute and its declared value? Typical syntax is attribute="value".
so it seems to generating an extra bit of code and I don't know if it should be in there or not.
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2009-04-29 16:02
Back to top
Reply with quote
|
I view this as a bug in phpMyEdit. HTML entity equivalents should probably have been chosen, or a graphic icon used instead of angle bracket characters. I don't remember if this is fixable or not. You might consider making a backup copy of the class file and searching with your text editor for occurrences of the brackets and replacing them with entities.
|
devilman
Joined: 27 Apr 2009
Posts: 3
Posted: 2009-04-29 16:12
Back to top
Reply with quote
|
I'm not certain that it's the << that the validator is complaining about actually as it underlines the " between 'disabled' and 'navop'. I think it just includes the bit before and after just to help provide context.
From an html point of view, it would certainly read better if it went -
...name="PME_sys_disabled="disabled" value="<<" ....
which is why I was querying the extra 'navop' bit in the code.
Sorry if I'm not explaining myself too well!
|
|
Post new topic
Reply to topic
|
|
|
|