| Index
» Projekty
» phpMyEdit
» Fórum
» Validating html - navop disabled |
 |
devilman
Založený: 27.04.2009
Príspevky: 3
Zaslal: 2009-04-27 10:13
Návrat hore
Odpovedať s citátom
|
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 -
| Kód: |
$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
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-04-29 14:52
Návrat hore
Odpovedať s citátom
|
Please re-state the goal and the problem.
|
devilman
Založený: 27.04.2009
Príspevky: 3
Zaslal: 2009-04-29 15:02
Návrat hore
Odpovedať s citátom
|
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
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2009-04-29 16:02
Návrat hore
Odpovedať s citátom
|
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
Založený: 27.04.2009
Príspevky: 3
Zaslal: 2009-04-29 16:12
Návrat hore
Odpovedať s citátom
|
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!
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|