"Generated" web page source wtf

From: CHYRON (DSMITHHFX)29 May 2012 14:56
To: ALL1 of 12
I'm trying to troubleshoot some non-functioning form submit buttons in a Pyrocms screen (they don't work on clean installs for the past two releases), and discovered an odd thing: although the 'plain' web page source code looks pretty kosher, if I look at the "generated" source (via Firefox "Web Developer" add-on), the opening and closing form tags are dropped, viz:

--- 'plain' source:
html code:
</form> <!-- closes "filter" form" -->
		</fieldset>
		<div id="filter-stage">
			<form action="http://localhost/pyrocms-stock210/admin/blog/action" method="post" accept-charset="utf-8">
			<div style="display:none">
				<input type="hidden" name="csrf_hash_name" value="a2ff817a572e6625d051e6f0d4693dc7" />
			</div>
			<table> <!-- begins blog post listings -->

[This form includes a closing tag]

--- "generated source" (note missing opening form tag, and hidden field "csrf_hash_name"):

html code:
</form>
		</fieldset>
		<div style="display: block;" id="filter-stage">
			<table>

---

The closing tag for THIS form is also missing in the "generated" source (although the code snippet includes the closing tag for the "filter" form, which also has it's opening tag. A third form on the page is also apparently complete with all tags.

Could this be where the problem with the dead submit buttons lies?
From: Peter (BOUGHTONP)29 May 2012 15:15
To: CHYRON (DSMITHHFX) 2 of 12
quote:
Could this be where the problem with the dead submit buttons lies?

No, of course it isn't! Why would you think such a thing!?!?!


The question you should be asking is why the form is being stripped out.

You can start by disabling all JavaScript and see if the form is still stripped out.

Also, identify the differences with this form and the ones that are not stripped out.

And of course check different browsers - both Chrome and Opera have the ability to inspect the document and see if the form tag has been removed or not.
EDITED: 29 May 2012 15:16 by BOUGHTONP
From: CHYRON (DSMITHHFX)29 May 2012 15:19
To: Peter (BOUGHTONP) 3 of 12
quote: BP
No, of course it isn't!


Actually, it is. Just wish it had occurred to me sooner, but I thought it a looong shot at best.
From: Peter (BOUGHTONP)29 May 2012 15:33
To: CHYRON (DSMITHHFX) 4 of 12
:| You may wish to educate yourself...

msg:39243.1
msg:39114.1
msg:28995.1
EDITED: 29 May 2012 15:35 by BOUGHTONP
From: CHYRON (DSMITHHFX)29 May 2012 15:42
To: Peter (BOUGHTONP) 5 of 12
I'm not clicking those...
From: Peter (BOUGHTONP)29 May 2012 15:43
To: CHYRON (DSMITHHFX) 6 of 12
Your loss.
From: CHYRON (DSMITHHFX)29 May 2012 16:05
To: Peter (BOUGHTONP) 7 of 12
I don't trust you not to go off on some whacked tangent. :-B

Reading through this, some are saying "generated" source isn't really all that accurate. In this one instance, it provided a valuable clue as to what may have been the problem (or at least, suggested a workable solution).

I just didn't have a clear understanding of what "generated" source meant (and still don't).
From: Peter (BOUGHTONP)29 May 2012 16:19
To: CHYRON (DSMITHHFX) 8 of 12
Get Firebug and inspect the DOM tree instead.

(And pay attention to the last four sentences in my first post!)
From: CHYRON (DSMITHHFX)29 May 2012 16:32
To: Peter (BOUGHTONP) 9 of 12
My browser is showing them as "yadda yadda yadda".
From: CHYRON (DSMITHHFX)30 May 2012 01:23
To: Peter (BOUGHTONP) 10 of 12

You were right about the javascript wottsit (which I kind of knew anyway, and just wanted a working patch regardless):

 

http://www.pyrocms.com/forums/posts/view_reply/17849

From: 99% of gargoyles look like (MR_BASTARD)30 May 2012 07:20
To: CHYRON (DSMITHHFX) 11 of 12
He was trying to tell you that the blue text that he used denotes sarcasm. But Peter, being Peter, couldn't just reply to #3 with a simple "blue text means sarcasm" clarification, he would rather make things difficult for you to follow. Matt really needs to tweak his AI, and his API while he's at it.
From: CHYRON (DSMITHHFX)30 May 2012 11:11
To: 99% of gargoyles look like (MR_BASTARD) 12 of 12

I just assume he is being sarcastic.

 

What makes this a bugger is that some of their js is minified.