Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

HEAD content in BODY? #952

Open
goofballLogic opened this issue Oct 14, 2015 · 2 comments
Open

HEAD content in BODY? #952

goofballLogic opened this issue Oct 14, 2015 · 2 comments

Comments

@goofballLogic
Copy link

When I look at browser.document.documentElement.innerHTML, or when I inspect the HEAD element using browser.document.childNodes etc., I find that the elements rendered as part of the HEAD have ended up in the BODY. I have verified (using e.g. curl) that this is not what the server is returning.

@goofballLogic
Copy link
Author

The HTML as delivered by the server:

<!DOCTYPE html>
<html lang="en">
    <head>
        <style>
            html, input { font-family: Arial; font-size: 1em; }
            fieldset { margin: 2em; padding: 2em; }
            main { max-width: 1000px; }
            .err { color: red; list-style-type: none; }
            p { margin: 0 0 1em 0; line-height: 1.5em;}
            input, label { line-height: 1.5em; }
            input { min-width: 15em; padding: 0 0.5em; }
            input[type='submit'], input[type='reset'] { min-width: auto; padding: 0.5em 1em; }
            input.err { border: solid 1px red; background-color: rgba(255,0,0,0.1); }
        </style>
    <title>Sign-up</title>
    </head>
    <body>
        <header>
            <h1>--removed--</h1>
        </header>
        <main>
<h2>Sign-up for an account</h2>
<form method="post">
<fieldset>
    <legend>All about you</legend>
    <p>These details let us know who you are and will be used in connection with any future account handling. The details entered should belong to a representative of the legal entity for which you are setting up the account.</p>
    <p>
        <label for="first_name">First name</label>
        <input type="text" name="first_name" id="first_name" value="" class="" required />
    </p>
    <p>
        <label for="last_name">Last name</label>
        <input type="text" name="last_name" id="last_name" value="" class="" required />
    </p>
    <p>
        <label for="organisation">Organisation / company</label>
        <input type="text" name="organisation" id="organisation" value="" class="" />
    </p>
    <p>
        <label for="phone">Contact telephone</label>
        <input type="text" name="phone" id="phone" value="" class="" required />
    </p>
</fieldset>
<fieldset>
    <legend>Account details</legend>
    <p>
        Details below will be used as your initial login to the system. In order to verify the e-mail address, we will send a veritication e-mail to the address supplied. The e-mail address entered should belong to the person responsible for administering your gateway.
    </p>
    <p>
        <label for="email">Administrator's e-mail</label>
        <input type="email" name="email" id="email" value="" class="" required />
    </p>
    <p>
        <label for="password">Password</label>
        <input type="password" name="password" id="password" value="" class="" required />
        <i>Your password needs to be at least 8 characters long</i>
    </p>
</fieldset>
<ul class="err">
</ul>
<input type="submit" name="submit" value="Sign me up!" />
<input type="reset" name="reset" value="Clear" />
</form>
        </main>
    </body>
</html>

@goofballLogic
Copy link
Author

Zombie gives me:


<head></head><body>         <style>         html, input { font-family: Arial; font-size: 1em; }         fieldset { margin: 2em; padding: 2em; }         main { max-width: 1000px; }         .err { color: red; list-style-type: none; }         p { margin: 0 0 1em 0; line-height: 1.5em;}         input, label { line-height: 1.5em; }            input { min-width: 15em; padding: 0 0.5em; }            input[type='submit'], input[type='reset'] { min-width: auto; padding: 0.5em 1em; }          input.err { border: solid 1px red; background-color: rgba(255,0,0,0.1); }       </style>    <title>Sign-up</title>              <header>            <h1>--removed--</h1>        </header>       <main>          <h2>Sign-up for an account</h2><form method="post"><fieldset>   <legend>All about you</legend>  <p>These details let us know who you are and will be used in connection with any future account handling. The details entered should belong to a representative of the legal entity for which you are setting up the account.</p>   <p>     <label for="first_name">First name</label>      <input type="text" name="first_name" id="first_name" value="Roofus" class="" required="">           </p>    <p>     <label for="last_name">Last name</label>        <input type="text" name="last_name" id="last_name" value="Gibonicus" class="" required="">          </p>    <p>     <label for="organisation">Organisation / company</label>        <input type="text" name="organisation" id="organisation" value="LoadsODosh Inc." class="">          </p>    <p>     <label for="phone">Contact telephone</label>        <input type="text" name="phone" id="phone" value="07599703602" class="" required="">            </p></fieldset><fieldset>   <legend>Account details</legend>    <p>     Details below will be used as your initial login to the system. In order to verify the e-mail address, we will send a veritication e-mail to the address supplied. The e-mail address entered should belong to the person responsible for administering your gateway.   </p>    <p>     <label for="email">Administrator's e-mail</label>       <input type="email" name="email" id="email" value="[email protected]" class="" required="">           </p>    <p>     <label for="password">Password</label>      <input type="password" name="password" id="password" value="1234password" class="" required="">             <i>Your password needs to be at least 8 characters long</i> </p></fieldset><ul class="err"> <li></li></ul><input type="submit" name="submit" value="Sign me up!"><input type="reset" name="reset" value="Clear"></form>     </main> </body>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant