• Resolved iamelegy

    (@iamelegy)


    Hi all,

    I’m having issues specifically with IE6 in relation to the password field on password-protected pages. IE6 is a headache, and I know little about it – however, I need to support it because 1/40the of the people visiting the site use it. Here are the details:

    The post-template.php file has the following code for

    function get_the_password_form() {
    	global $post;
    	$label = 'pwbox-'.(empty($post->ID) ? rand() : $post->ID);
    	$output = '<form action="' . get_option('siteurl') . '/wp-pass.php" method="post">
    	<p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
    	<label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" />
    	</form>
    	';
    	return apply_filters('the_password_form', $output);
    }

    The code translates into this in the finished product. Note that there is an unclosed <p> tag in there for some odd reason. Even if this is the source of the problem(which may be unlikely), I’m not sure how to find what is causing it, or how to actually close it without causing errors.

    <div class="storycontent">
    		<form action="*websiteaddress*/wp-pass.php" method="post">
    <p>*Replaced text*</p>
    <p>	<label for="pwbox-10">Password:<br />
    <input name="post_password" id="pwbox-10" type="password" size="20" /></label><br />
    <input type="submit" name="Submit" value="Submit" />
    	</form>
    	 </div>

    The problem is that IE6 is completely unable to select the password form to enter the password. It treats it as an inert element of the page. Using tab to select elements of a page also seems to skip over it, and IE6 is the only browser that is broken so far.

    Using wordpress 2.8.2, and would seriously appreciate any help. I’m a bit of a beginner, with a bit of a headache.

    Page address available if needed.

Viewing 1 replies (of 1 total)
  • Just tried this on one of my 2.8.2 dev installs using IE6 (via IETester). I had no problem selecting the password input either using the mouse or via the keyboard. So it looks like this is a server or theme specific problem.

    In my experience, the most common cause for this kind of problem is CSS. The preceding block level element is extending down over the problem area – essentially covering it and rendering it unusable within some versions of IE. It can be version specific because different versions of IE parse the same CSS so differently (and badly, in many cases).

    So, in this case, I’d be looking at the post title or any other element that precedes the form. I’ve even seen headers extend invisibly downwards for almost half of a screen – blocking off everything they covered.

Viewing 1 replies (of 1 total)

The topic ‘IE6 password form entry issues’ is closed to new replies.