#1175 XHTML: there is no attribute

N/A-2
closed
Darren Greene
XHTML (51)
5
2004-02-03
2004-01-07
Rob Halff
No

In several places in the phpWebSite code, this code is
used:
<script language="JavaScript"
type="text/javascript"></script>

In valid XHTML 1.0 strict this should be:
<script type="text/javascript"></script>
for inline code and for external javascripts:
<script type="text/javascript" src="...js"></script>

or maybe:

<script type="text/javascript" src="...js"/>
but I'm not sure that validates well.

The non-validating code is inside:
mod/pagemaster/class/Page.php
core/WizardBag.php and
js/js_on.php

Discussion

  • Rob Halff
    Rob Halff
    2004-01-07

    • summary: XHTML: there is no attribute "language" --> XHTML: there is no attribute
     
  • Rob Halff
    Rob Halff
    2004-01-07

    Logged In: YES
    user_id=926151

    <code><b>bold</b></code> ..

     
  • Rob Halff
    Rob Halff
    2004-01-07

    Logged In: YES
    user_id=926151

    <pre><b>test</b></pre>

     
  • Rob Halff
    Rob Halff
    2004-01-07

    Logged In: YES
    user_id=926151

    <p style="width: 20px; height: 20px; border: 1px solid
    black; background-color: silver">&nbsp;</p>

     
  • Rob Halff
    Rob Halff
    2004-01-07

    Logged In: YES
    user_id=926151

    <p style="width: 300px; height: 50px; background-color:
    silver; border: 2px solid black; color: red; font-weight:
    bold; padding: 1em;">Sorry for playing around here, but
    seems like I have to report a bug to sourceforge.net too!</p>

     
  • Mike Noyes
    Mike Noyes
    2004-01-07

    Logged In: YES
    user_id=39521

    In several places in the phpWebSite code, this code is used:

    &lt;script language="JavaScript"&gt;
    type="text/javascript"&gt;&lt;/script&gt;

    In valid XHTML 1.0 strict this should be:

    &lt;script type="text/javascript"&gt;&lt;/script&gt;

    for inline code and for external javascripts:

    &lt;script type="text/javascript" src="...js"&gt;&lt;/script&gt;

    or maybe:

    &lt;script type="text/javascript" src="...js"/&gt;

    but I'm not sure that validates well.

    The non-validating code is inside:
    mod/pagemaster/class/Page.php
    core/WizardBag.php and
    js/js_on.php

     
  • Rob Halff
    Rob Halff
    2004-01-07

    The same bug report in a text file, with the html visible

     
    Attachments
  • Darren Greene
    Darren Greene
    2004-02-03

    • assigned_to: nobody --> dg49379
    • status: open --> closed
     
  • Darren Greene
    Darren Greene
    2004-02-03

    Logged In: YES
    user_id=783140

    I checked on this issue and the "language" attribute is
    necessary for older browsers since they do not support the
    "type" attribute. Also our pages do not use the strict dtd
    but the traditional dtd. I did a quick test with the
    validator using the "language" attribute with the script tag
    and the page still validated under the traditional dtd.

    Here are two sites that I found that discussed this issue:
    http://www.webreference.com/html/tutorial16/4.html
    http://www.richinstyle.com/guides/script4.html

    Thanks for pointing this out. If we change to the strict
    dtd this will definitly need to be changed. I am going to
    go ahead and close this bug but feel free to open it back up
    if needed.

    Darren