DW8 writing invalid xhtml 1.0 strict code

My XHTML 1.0 STRICT doc created in DW8 design view has
invalid attributes hspace &align
<img src="images/massage.jpg" alt="massage" width="240"
height="160" hspace="10" align="right" />
It would appear that setting doc pref to xhtml1.0 strict does
nothing but change the page declaration and DW continues to write
xhtml 1.0 trans code.
Is this to be fixed?

> get it?
No, I definitely wouldn't want it to write that into my page.
If it were going to recreate the effect of hspace="10", it
would have to
write -
margin-left:10px; margin-right:10px;
and position:static is unnecessary and redundant with the
default.
Plus, I wouldn't want it to add inline styles to my tags. I
could see it
prompting for a class name to use to hold this new style....
But, it's not up to us to decide this anyhow. If you have
filed a wish
form, then you have done the best you can do....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"bikeman01" <[email protected]> wrote in
message
news:[email protected]...
>
quote:
Originally posted by:
Newsgroup User
> What you're suggesting is that Dreamweaver should
disable certain
> attributes in the Property inspector when a strict DTD
is selected. It
> may be a useful improvement, and Murray has already
given you the URL
> for bug reports and feature requests. However, the way
that Dreamweaver
> works at the moment is that it expects anyone selecting
a strict DTD to
> know XHTML well enough to avoid using deprecated
elements.
>
> --
> David Powers, Adobe Community Expert
> Author, "Foundation PHP for Dreamweaver 8" (friends of
ED)
> Author, "PHP Solutions" (friends of ED)
>
http://foundationphp.com/
>
>
> I have raised a report
>
> But I expect it not to just grey out properties I also
expect it to write
> valid xhtml e.g.
>
> NOT hspace="10" align="right"
>
> BUT INSTEAD style="float: right; margin-left: 10px;
position: static"
>
> get it?
>
> I don't accept the answer that 'DW8 expects designers
who select 1.0
> strict to
> know not to use depreciated elements' - Macromedia/Adobe
provide code
> completion/properties panels as a tool for ease of use
for those designers
> who
> are not code experts. It would be better if they wrote
no code at all
> rather
> than incorrect code.
>
>
>
>

Similar Messages

  • label tag: DW8 sometimes generates illegal XHTML 1.0/Transitional code

    Dreamweaver 8 sometimes generates XHTML 1.0/Transitional code
    that violates the DTD when using the <label> tag for adjacent
    radio buttons on a form.
    Consider the following example:
    1) Make a new HTML page using the XHTML 1.0/Transitional
    document type.
    2) Working in Design mode, insert a a new form element.
    3) With accessibility options turned on, insert a radio
    button. When the Input Tag Accessibility Attributes dialog appears,
    give the new button a label of "This is my label" and select the
    "Wrap..." style.
    4) Use the Property Inspector to assign a name and value of
    "choice1" to the new radio button.
    5) Using the arrow keys, position the cursor at the end of
    the new button's label text.
    6) Insert a second radio button there, and give it a label of
    "This is my second label."
    7) Use the Property Inspector to assign a name and value of
    "choice2" to the second radio button.
    Examine the resulting code. The code will be either valid or
    invalid, depending on exactly where the cursor was positioned in
    step 4. If you watch the Code window while you position the cursor
    in step 4, you will see that the cursor positions itself EITHER
    INSIDE OR OUTSIDE THE FIRST BUTTON'S </label> TAG, DEPENDING
    ON which direction you were going when you positioned the cursor at
    the end of the prior button's label. If you were moving the cursor
    from left to right, the cursor will be placed WITHIN the first
    button's closing </label> tag; if you overshot the end of the
    prior label and then backed up, the cursor will be placed BEYOND
    the closing </label> tag. In the former case, each button
    will get a separate <label> tag pair. In the latter case,
    BOTH BUTTONS WILL BE CONTAINED WITHIN A SINGLE <label> TAG
    PAIR, as in the following (illegal) example:
    <!--THIS CODE IS INVALID ACCORDING TO XHTML
    1.0/TRANSITIONAL-->
    <label>
    <input name="choice1" type="radio" value="choice1" />
    This is my label
    <input name="choice2" type="radio" value="choice2" />
    This is my second label
    </label>
    This is INVALID XHTML 1.0/TRANSITIONAL. Specifically, the DTD
    specifies that "Each label must not contain more than ONE field" (
    http://www.w3.org/TR/xhtml1/dtds.html).
    Here, Dreamweaver generates one label containing two fields. While
    IE6 and Opera 8.0 ignore the error and display it anyway, Firefox
    1.5 follows the DTD in this case and therefore cannot handle more
    than one radio button within a single label tag; the resulting form
    selects the first value no matter what the user clicks on.

    Max
    This is happening because in standards mode browsers are ignoring the height="70%" attribute on the table that is the first element of div.t13BodyMargin because (among other things) it's invalid XHTML. This is the kind of thing that happens when the built-in APEX themes &ndash; designed for quirks mode &ndash; are thrown into standards mode by specifying a DOCTYPE.
    You can remove that attribute from the template XHTML and try the following in your CSS:
      html, body {
      height: 100%;
    form#wwvFlowForm {
      position: relative;
      height: 100%;
      min-height: 100%;
    div.t13BodyMargin {
      padding-bottom: 2em;
    div.t13NewBottom {
      position: absolute;
      bottom: 0;
      width: 100%;
    }Note there was Re: Support for non-quirks HTML mode.
    If you're determined on going down the standards route, you should check your pages against a validator and fix any other invalid mark-up in the templates, but achieving 100% compliance is unlikely due to APEX engine-generated code you have no control over.
    However, if you have no real requirement for introducing the DOCTYPE declaration and are not prepared to pursue the additional effort in achieving near-compliance, it's pointless to do so as it will only introduce this kind of issue.

  • Javax.faces.STATE_SAVING_METHOD produces invalid XHTML

    Hi to all,
    it seems that setting the value javax.faces.STATE_SAVING_METHOD in the web.xml causes invalid XHTML code.
    I checked the produced code using the validator of w3.org.
    All of the errors are caused by the input field which should save the state. Here are the errors:
    ID "jsf_tree_64" already defined.
    ID "jsf_state_64" already defined.
    ID "jsf_viewid" already defined.These 3 errors are repeated very often. What's wrong here?
    Please help. Thanks
    Manuel

    I have just come across the same problem. I am somewhat of a perfectionist when it comes to meeting W3C specs, and I was wondering if anyone out there knows of any work to correct this minor, but annoying problem?

  • Java *xhtml traditional and strict question

    I had to copy a piece of java code into the head of a new
    xhtml doc. The original page and the first couple of lines of code
    are the original code below
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>index</title>
    <script language="javascript">AC_FL_RunContent =
    0;</script>
    <script src="AC_RunActiveContent.js"
    language="javascript"></script>
    <script language="javascript">
    function scrolling(){
    document.body.scrollTop = 750;
    </script>
    I made a new page in Dreamweaver /the default is xhtml
    transitional
    and copied the code so the page looks like this
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <meta name="description" content="Your description goes
    here" />
    <meta name="keywords" content="your,keywords,goes,here"
    />
    <meta name="author" content="Your Name" />
    <link rel="stylesheet" type="text/css"
    href="/2009/idnynew.css" title="andreas08"
    media="screen,projection" />
    <title>XXXXXXXX</title>
    <script language="javascript">AC_FL_RunContent =
    0;</script>
    <script src="../AC_RunActiveContent.js"
    language="javascript"></script>
    <script language="javascript">
    function scrolling(){
    document.body.scrollTop = 750;
    </script>
    The java function does not work in the xhtml traditional or
    strict xhtml for that matter.
    Can someone tell me why and what I have to change oin the
    java to make it work in xhtml trans or strict?
    Is it healthy to leave it alone and put the page up the way
    it is deletting the first line of code?
    anybody?

    oops.
    I meant to say which ones.
    I have look at w3.org and haven't found the answer.
    cs

  • Doctype -- XHTML Transitional or Strict?

    I am working on my first site with DW 8. I took a couple of
    classes and have been learning as much as I can about HTML and CSS.
    When choosing the DOCTYPE, is there any reason not to use XHTML 1.0
    Strict? As far as I can tell, people seem to mostly use XHTML 1.0
    Transitional (or an earlier version). I'd appreciate a little more
    explanation about why Transitional XHTML is used instead of Strict.
    I've been reading about problems with boxes in IE 5.5 that can be
    fixed using conditional comments which would include some extra CSS
    code (* html). Would this interfere with validation? Is there any
    way to change the DOCTYPE for pages I have already started?

    > is there any reason not to use XHTML 1.0 Strict?
    No. If your skill can support the use of this doctype, it's
    fine to use.
    > Would this interfere with validation?
    No.
    > Is there any way to change the
    > DOCTYPE for pages I have already started?
    In CS3, use FILE | Convert ...
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Daylilybud" <[email protected]> wrote in
    message
    news:frlanb$ec$[email protected]..
    >I am working on my first site with DW 8. I took a couple
    of classes and
    >have
    > been learning as much as I can about HTML and CSS. When
    choosing the
    > DOCTYPE,
    > is there any reason not to use XHTML 1.0 Strict? As far
    as I can tell,
    > people
    > seem to mostly use XHTML 1.0 Transitional (or an earlier
    version). I'd
    > appreciate a little more explanation about why
    Transitional XHTML is used
    > instead of Strict. I've been reading about problems with
    boxes in IE 5.5
    > that
    > can be fixed using conditional comments which would
    include some extra CSS
    > code
    > (* html). Would this interfere with validation? Is there
    any way to change
    > the
    > DOCTYPE for pages I have already started?
    >

  • Loading Flash content using loadMedia??? Or else??? Has to be XHTML 1.0 Strict and WAG valid

    I have a new project into which i have to insert SWF into an HTML page using other way that the standard Abobe way to do it.
    I know about Flash Satay but i have 300s Flash files to insert and dont want to reopen each of them.
    My HTML pages have to W3C comply and as you know, the <classic id> or <embed> tag isnt valid regarding XHTML 1.0 Strict.
    Client, who insists that his media be accessible to EVERYBODY, suggested using
    "javascript:loadMedia('flashContainer','flv/v01.flv', '', '', 'fra', '','','', 'false');"><img src="images/flashFr.jpg" alt="" /></a></p>
    where loadMedia is a function with these parameters
    <!-- Parameters for loadMedia function
    loadMedia('mediacontainer', '<file>', '<caption>', '<image>', '<lang>', '<playId>', '<height>', '<width>', '<autostart>' )
    - mediacontainer - /* container that holds the player */
    - file - /* Specifies the location of the file to play. */ (.flv)
    - caption - /* Specifies the location of the xml-based captions file using the SMIL Timed Text format. */
    - image - /* Specifies the image to display when playing MP3 or FLV files. This FlashVar can also be used to display a preview image for other formats. Supported formats are JPG, SWF, PNG, and GIF. */
    - lang - /* Specifies the language of the player. */
    - playId - /* Element id of the player control */
    - height - /* Specifies the window height of the control. */
    - width - /* Specifies the window width of the control. */
    - autostart - /* AutoStart the loaded clip */
    -->
    Do you know about that? Can you help? Do you know any other way to insert Flash content with respect to:
    - Javascript on/off valid
    - XHTML 1.0 Strict valid
    - WAG valid.

    I am VERY concerned with the fact that my pages are not being properly validated and displayed.
    I have created two different sites using iWeb '08 and while I am satisfied with the ease of use, I am concerned that my sites are not being displayed correctly... in fact, the other day my friend who is a Mac whiz and who hosts my business website on his server... tried to visit the site that I created using iWeb '08 and had published to my .Mac account... it caused his browser to flat out crash! He said he hasn't seen anything like that in years!
    Here is the site I have begun to build http://www.mcleanmonowheel.com
    If you paste this url into http://validator.w3.org/ a slew of errors pop up.
    Is this the norm with iWeb or have I done something wrong on my end???
    -Patrick

  • I need a request code for offline activation. Because i cannot connect with adobe server for online activation. But I receive "The request code is invalid." by generate answer code.

    I need a request code for offline activation. Because i cannot connect with adobe server for online activation. But I receive "The request code is invalid." by generate answer code.

    Dear Anubha,
    I hope these windows illustrate what I am facing.
    The above window shows the prompt that the software requires activation.
    The version is 8.1.0.
    This next window is the point where I select activation by phone.
    This final window shows that the "response code" is not returned.  I get an
    "Activation Number" instead.
    Steven
    On Tue, Jan 27, 2015 at 10:50 PM, Anubha Goel <[email protected]>

  • HT5188 Nearly every time I buy a VPP app and download the spreadsheet there are multiple redemption codes that say that they are invalid!  HOW can a code I am getting directly from apple be invalid!!!!!!!!  Seems like your system has A LOT of flaws.

    Nearly every time I buy a VPP app and download the spreadsheet there are multiple redemption codes that say that they are invalid!  HOW can a code I am getting directly from apple be invalid!!!!!!!!  Seems like your system has A LOT of flaws.

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • TP_domain_bd1.pfl could not be open for writing(invalid argument)

    Dear All,
    I have configure new the transported domin (STMS) and getting an error
    TP_domain_bd1.pfl could not be open for writing(invalid argument)
    Please suggeest how to salove this problem and i can see this flie there.
    Regards,

    Hi,
    Did you configure the STms Porperly.
    Did you Distribut the System
    overview -> extras->press distrIbute and activate
    Set the Transdir path in the new system
    Check the domain controller system is accessiblefrom this system especially
    (/sapmnt/trans) and should have read,write permissions
    SAP user IDs:
    SIDadm
    SAPServiceSID
    These IDs must be able to have full control of \sapmnt.
    Thanks Rishi Abrol

  • XHTML 1.0 strict messing up tables

    I have a programmer who is using XHTML 1.0 strict. My table
    heights dont behave. I have a space under all my graphics that I
    dont seem to be able to get rid of. Dont have a clue what is
    causing this.
    The site is designed. I can't show you because I signed a
    non-disclosure.
    This table doesnt work:
    <table width="750" border="0" align="center"
    cellpadding="0" cellspacing="0">
    <tr>
    <td><img src="images/logo.gif" alt="Logo"
    width="273" height="133" hspace="0" vspace="0" border="0"
    /></td>
    <td><img src="images/purpleback2.gif" alt="Purple"
    width="62" height="133" hspace="0" vspace="0" border="0"
    /></td>
    <td><img src="images/kids1.gif" alt="Kids"
    width="415" height="133" hspace="0" vspace="0" border="0"
    /></td>
    </tr>
    </table>
    There is an approx. 3 pixel height under my graphics.
    Hope someone can help. I cannot go to all CSS on this
    one.

    cindy1074 wrote:
    > I have a programmer who is using XHTML 1.0 strict. My
    table heights dont
    > behave. I have a space under all my graphics that I dont
    seem to be able to get
    > rid of. Dont have a clue what is causing this.
    Table height is not valid so if you are using a strict doc
    type it will
    ignore table height.
    As for the space beneath your images try adding to your css
    img {
    display: block;
    > The site is designed. I can't show you because I signed
    a non-disclosure.
    >
    > This table doesnt work:
    > <table width="750" border="0" align="center"
    cellpadding="0" cellspacing="0">
    > <tr>
    > <td><img src="images/logo.gif" alt="Logo"
    width="273" height="133"
    > hspace="0" vspace="0" border="0" /></td>
    > <td><img src="images/purpleback2.gif"
    alt="Purple" width="62" height="133"
    > hspace="0" vspace="0" border="0" /></td>
    > <td><img src="images/kids1.gif" alt="Kids"
    width="415" height="133"
    > hspace="0" vspace="0" border="0" /></td>
    > </tr>
    > </table>
    >
    > There is an approx. 3 pixel height under my graphics.
    >
    > Hope someone can help. I cannot go to all CSS on this
    one.
    >

  • Invalid mark up XHTML 1.0 Strict

    I check my pages on XHTML and CSS validators both in DW and
    other sites. my css is all correct and my xhtml is correct except
    for the flash div. The code is too long to put here, can someone go
    put this url through a xhtml validating page and see what I mean? I
    need to know how to correct the errors.
    swf is on this
    page

    Nobody???

  • Spry Accordian Invalid XHTML

    Hi:
    I created a spry accordian from DW CS3. Insert/Spry/Spry Accordian, but when I run through the W3C validation site I get the following error report:
    Line 182, Column 49:         Attribute "tabindex" exists, but can not be used for this element.
    <div id="Accordion1" class="Accordion" tabindex="0">

    You have used the attribute named above in your document, but the       document type you are using does not support that attribute for this       element. This error is often caused by incorrect use of the "Strict"       document type with a document that uses frames (e.g. you must use       the "Transitional" document type to get the "target" attribute), or       by using vendor proprietary extensions such as "marginheight" (this       is usually fixed by using CSS to achieve the desired effect instead).
    This error may also result if the element itself is not supported in       the document type you are using, as an undefined element will have no       supported attributes; in this case, see the element-undefined error       message for further information.
    How to fix: check the spelling and case of the element and attribute,        (Remember XHTML is all lower-case) and/or        check that they are both allowed in the chosen document type, and/or       use CSS instead of this attribute. If you received this error when using the        <embed> element to incorporate flash media in a Web page, see the        FAQ item on valid flash.
    Here's the code straight from DW. Any help much appreciated TIA!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 1</div>
        <div class="AccordionPanelContent">Content 1</div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 2</div>
        <div class="AccordionPanelContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    </script>
    </body>
    </html>

    Your best bet regarding that particular "error" (tabindex exists but cannot be used for this element) is to remove the tabindex attribute and value from your markup.
    Unless you have a good reason to have it there, it is basically nonfunctioning. There are probably other ways to set a tab order, but typically, accessibility indicates that you should set up your page (code) in the order that you would like it 'read' by screen readers. Then it will naturally tab from form element to form element in order.
    Beth

  • Validation Errors with Spry tabbed panels with doctype XHTML 1.0 Strict

    I'm getting errors while using the W3C Validation Service on my Strict XHTML 1.0 pages that use the SPRY Tabbed Panels.  I've read a few places that W3C has no plans on 'fixing or relaxing" the restrictions. Is there any type of work around to the Spry Widget Tab panels code ??? All of my other pages validate nicely... hate to go back to Transitional afterconverting all my other code.  
    The DreamWeaver File validation also gives me errors but I think that is fed from W3C.
      Any help would be appreciated. Thanks   Pat
    Line 31, Column 46: there is no attribute "tabindex"
    … <li class="TabbedPanelsTab" tabindex="0">Want a professional looking Logo ?</…

    Use Spry 2.0
    You can see a live demo of Spry 2.0 widgets below (contains valid markup).
    http://alt-web.com/sandbox/Spry-test.html
    Unless you're incorporating XML applications into your web site, there is not much reason to use XHTML Strict doc types. That standard was last revised in 2002.  It has since been replaced with HTML5.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Problem with Reports Server and invalid DB packages when release code

    Hello,
    I'm not certain that this is a Reports issue or not, but wondered if anyone had encountered similar. We've recently upgraded from Forms and Reports 6i to 10.1.2.0.2. A couple of times now, after doing a release of code to our environment, we find that the next request to the Reports Server generates a 'existing state of packages has been discarded' error. Submitting exactly the same report request a second and subsequent times works fine.
    However, we always make sure we recompile all invalid packages after a code release; and our Forms front-end doesn't encounter any errors like this. Is there some possible issue with using existing Reports engines to run reports after a code release - should we be bouncing the Reports server..?
    Thanks,
    James

    Hi. Thanks for your quick response. The contain of StrSql is:
    "SELECT IdTipo FROM TIPOSTELEFONO", where IdTipo id a column of TIPOSTELEFONO Table.
    I tryied the same sql setence with SQL Server Management Studio Express and it works fine. Already I have tryied with others sql sentences. All they worked fine in SQL Server Management Studio, but not with my java example using sqljdbc4.jar.
    sqljdbc4.jar documentation comment that these driver work with sql server 2000 to sql server 2008. I'll ask this cuestion in Microsoft forums.
    Thanks.

  • Got invalid xbox live gift card code

    I bought two xbox live gift cards of $25 each when you had them for $20, but one of the codes is coming up as invalid when I put it in, I've checked and put it in multiple places and its still coming up as invalid, so do I need to go to a store and activate it or what? I bought them online, thanks for the help in advance

    isak033 wrote:
    Same thing is happening for me. Bought it 2012-06-20, 11:42. And it says that it will activate within 24 hours, but I do not think that is has activated. Maybe it is another problem? Please help, i don´t feel like spending 300 sek (three months of premium) and not getting anything... 
    I'd recommend dropping us a line through our contact form if you're having issues. Be sure to include the code itself in your email so we can take a look.

Maybe you are looking for

  • PDF created in Indesign on Mc cannot be edited od PC?!

    Hi, I am using Indesign CS6 on Mountain Lion. I have epxorted a book to PDF today. Unlocked. I have checked it several times in Acrobat . everything is allowed. Then I have sent thr pdf over to translator for proof-reading. But he is not able to add

  • Best practice for updating ATWRT (Characteristic Value) in AUSP

    I've notice that when we change the Characteristic Value of a Classification, that it does not update in the MM record. We have to go into MM02 for each material number that references Char Value and manually change it for row in AUSP to get updated.

  • Connecting iBook G4 to projector

    I want to connect an iBook G4 to an Epson projector. How do I do it? The projector has a blue multipin socket as standard and a plug in card, presumably for wireless networking. My Pogue manual does not mention projectors at all. I suspect I have to

  • Procedure  prob

    hi, i need a stroed procedure that takes table name and column names as arg and this procedure should return all column values in that table . this type option available in sql server. but no option available in oracle. how can i accomplish this task

  • Which shaman package from AUR to put on gnome?

    This is a forward to the actual post in the AUR discussion: [removed]