Created
January 26, 2011 17:49
-
-
Save juggy/797100 to your computer and use it in GitHub Desktop.
Html5 parse error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='template' id='expense_line_template'> | |
<form accept-charset="UTF-8" action="" class="formtastic expense_line" id="new_expense_line" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /><input name="authenticity_token" type="hidden" value="Oebai47Bo8n5KjXRi37Z+nK9vJkWI3bxtwgIpc5Hjqg=" /></div> | |
<fieldset class="inputs"><ol><li class="numeric required material" id="expense_line_material_id_input"><label for="expense_line_material_id">Material<abbr title="required">*</abbr></label><input id="expense_line_material_id" name="expense_line[material_id]" type="text" /></li> | |
<li class="select required expense_category" id="expense_line_expense_category_input"><label for="expense_line_expense_category_id">Category<abbr title="required">*</abbr></label><select id="expense_line_expense_category_id" name="expense_line[expense_category_id]"><option value="1">Material</option> | |
<option value="2">Subcontractor</option> | |
<option value="3">Labour</option> | |
<option value="4">Equipment</option> | |
<option value="5">Other</option></select></li> | |
</ol></fieldset> | |
</form> | |
</div> | |
Error: | |
DEBUG: 'treebuilder.insert_element' 'abbr' | |
DEBUG: 'treebuilder.copyAttributes' { nodeName: 'title', nodeValue: 'required' } | |
DEBUG: 'treebuilder.remove_open_elements_until' [Function] | |
DEBUG: 'treebuilder.pop_element' 'ABBR' | |
DEBUG: 'treebuilder.remove_open_elements_until' [Function] | |
DEBUG: 'treebuilder.pop_element' 'LABEL' | |
DEBUG: 'treebuilder.insert_element' 'select' | |
DEBUG: 'treebuilder.copyAttributes' { nodeName: 'id' | |
, nodeValue: 'expense_line_expense_category_id' | |
} | |
DEBUG: 'treebuilder.copyAttributes' { nodeName: 'name' | |
, nodeValue: 'expense_line[expense_category_id]' | |
} | |
DEBUG: 'treebuilder.insert_element' 'option' | |
DEBUG: 'treebuilder.copyAttributes' { nodeName: 'value', nodeValue: '1' } | |
DEBUG: 'treebuilder.pop_element' 'OPTION' | |
DEBUG: 'treebuilder.insert_element' 'option' | |
DEBUG: 'treebuilder.copyAttributes' { nodeName: 'value', nodeValue: '2' } | |
DEBUG: 'treebuilder.pop_element' 'OPTION' | |
DEBUG: 'treebuilder.insert_element' 'option' | |
DEBUG: 'treebuilder.copyAttributes' { nodeName: 'value', nodeValue: '3' } | |
DEBUG: 'treebuilder.pop_element' 'OPTION' | |
DEBUG: 'treebuilder.insert_element' 'option' | |
DEBUG: 'treebuilder.copyAttributes' { nodeName: 'value', nodeValue: '4' } | |
DEBUG: 'treebuilder.pop_element' 'OPTION' | |
DEBUG: 'treebuilder.insert_element' 'option' | |
DEBUG: 'treebuilder.copyAttributes' { nodeName: 'value', nodeValue: '5' } | |
DEBUG: 'treebuilder.pop_element' 'OPTION' | |
DEBUG: 'treebuilder.remove_open_elements_until' 'select' | |
DEBUG: 'treebuilder.pop_element' 'expense_line[expense_category_id]' | |
When I go to the expenses page # features/step_definitions/common/web_steps.rb:29 | |
#<JSON::ParserError: 705: unexpected token at '"TypeError: Cannot read property 'tagName' of undefined\n at EventEmitter.reset_insertion_mode (/usr/local/lib/node/.npm/zombie/9999.0.0-LINK-24ee775d/package/node_modules/.npm/html5/0.2.12/package/lib/html5/parser.js:190:24) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment