# Wierd HTML rendering problem

**URL:** <https://www.ruby-forum.com/t/wierd-html-rendering-problem/177584>\
**Category:** Rails\
**Created:** [October 20, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/wierd-html-rendering-problem/177584 "2009-10-20T17:05:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![theambler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7cd45c/32.png) [@theambler](https://www.ruby-forum.com/u/theambler)\
**Post date:** [October 20, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/wierd-html-rendering-problem/177584/1 "2009-10-20T17:05:05Z")

</div>

This I can’t fathom:

I have a Rails application which renders the following two links ro  
create new objects as part of a taskbar

 **date** | **file** |

But when the page renders, the first link is clickable, while the  
second isn’t. But this only seems to be the case in Windows Firefox,  
not Mac or IE.

The ERB which produces the links, and the links themselves are  
identifical to my eye, except for the fact they deal with different  
models.

Any ideas?

---

<div class="post-metadata">

**Author:** ![theambler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7cd45c/32.png) [@theambler](https://www.ruby-forum.com/u/theambler)\
**Post date:** [October 20, 2009, 5:19pm UTC](https://www.ruby-forum.com/t/wierd-html-rendering-problem/177584/2 "2009-10-20T17:19:08Z")

</div>

On Tue, Oct 20, 2009 at 11:03 AM, theambler [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Any ideas?

Can you validate the page (say, at [http://validator.w3.org/](http://validator.w3.org/))? When  
I’ve run into weird things like this, I have restarted by development  
server on port 80 and pointed the validator at the page on my  
development server just to see what it spits out.

oh… you wanted “good” ideas. Sorry, I don’t think I can help you  
there. 🙂

–wpd

---

<div class="post-metadata">

**Author:** ![theambler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7cd45c/32.png) [@theambler](https://www.ruby-forum.com/u/theambler)\
**Post date:** [October 20, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/wierd-html-rendering-problem/177584/3 "2009-10-20T17:30:16Z")

</div>

No thats a good idea.

How can I get an application with secure session-based login validated  
by W3 – the validator just ends up validating the login page.

---

<div class="post-metadata">

**Author:** ![theambler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7cd45c/32.png) [@theambler](https://www.ruby-forum.com/u/theambler)\
**Post date:** [October 20, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/wierd-html-rendering-problem/177584/4 "2009-10-20T17:43:44Z")

</div>

2009/10/20 theambler [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> No thats a good idea.
> 
> How can I get an application with secure session-based login validated  
> by W3 – the validator just ends up validating the login page.

Just get to the page then view the source and copy it, then paste into  
the ‘direct input’ page at W3

Colin

---

<div class="post-metadata">

**Author:** ![theambler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7cd45c/32.png) [@theambler](https://www.ruby-forum.com/u/theambler)\
**Post date:** [October 20, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/wierd-html-rendering-problem/177584/5 "2009-10-20T17:58:23Z")

</div>

On Tue, Oct 20, 2009 at 8:41 AM, Colin L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > How can I get an application with secure session-based login validated  
> > by W3 – the validator just ends up validating the login page.
> 
> Just get to the page then view the source and copy it, then paste into  
> the ‘direct input’ page at W3

The Firefox Web D. Toolbar has a “Validate Local HTML”  
method to make this easier, FWIW.

Also, if your markup and CSS validate, and there’s no JS errors  
showing, try turning off CSS.

Either the link is receiving the event and the action isn’t taking place  
for some reason - or - the link never gets the event at all because  
some element is “above” it and capturing the event. Turning off CSS  
will help determine if the latter is true.

Or add a listener to the body that alerts the target of a click event –  
then try to click on the link and see what captures the event.

## HTH,

Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![theambler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7cd45c/32.png) [@theambler](https://www.ruby-forum.com/u/theambler)\
**Post date:** [October 20, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/wierd-html-rendering-problem/177584/6 "2009-10-20T18:28:15Z")

</div>

All good. Thanks. Will test later.

On Oct 20, 4:56 pm, Hassan S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![theambler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7cd45c/32.png) [@theambler](https://www.ruby-forum.com/u/theambler)\
**Post date:** [October 23, 2009, 11:00am UTC](https://www.ruby-forum.com/t/wierd-html-rendering-problem/177584/7 "2009-10-23T11:00:26Z")

</div>

Couldn’t find any validation problems on those lines.

IN the end I moved the links around a bit, and the one in question  
does now trigger – but only from the first couple of letters. Really  
strange.
