html5hacks / chapter3

O'Reilly HTML5 Hacks Chapter 3 - Multimedia
http://html5hacks.github.com/chapter3
2 stars 2 forks source link

errors are on: http://localhost:3000/example2 #1

Open changyh opened 11 years ago

changyh commented 11 years ago

Express 500 Error: C:\downloads\chapter3-master/views/example2.jade:6 4| video(id='myVideo', width='480', controls, height='360', poster='examples/sanfran.jpg', src='examples/sanfran.m4v') 5| track(src="/examples/subtitles.vtt", type="text/vtt", kind="subtitles", srclang="en", label="English", default) > 6| div(style='margin-bottom:30px) 7| button.button.skipBack skip back 8| button.button.stop stop 9| button.button.play play The end of the string was reached with no closing bracket found. 4| video(id='myVideo', width='480', controls, height='360', poster='examples/sanfran.jpg', src='examples/sanfran.m4v') 5| track(src="/examples/subtitles.vtt", type="text/vtt", kind="subtitles", srclang="en", label="English", default)

6| div(style='margin-bottom:30px) 7| button.button.skipBack skip back 8| button.button.stop stop 9| button.button.play play The end of the string was reached with no closing bracket found. at parseMax (C:\downloads\chapter3-master\node_modules\jade\node_modules\character-parser\index.js:26:13) at Object.Lexer.bracketExpression (C:\downloads\chapter3-master\node_modules\jade\lib\lexer.js:123:17) at Object.Lexer.attrs (C:\downloads\chapter3-master\node_modules\jade\lib\lexer.js:492:24) at Object.Lexer.next (C:\downloads\chapter3-master\node_modules\jade\lib\lexer.js:776:15) at Object.Lexer.lookahead (C:\downloads\chapter3-master\node_modules\jade\lib\lexer.js:107:46) at Object.Parser.lookahead (C:\downloads\chapter3-master\node_modules\jade\lib\parser.js:115:23) at Object.Parser.parseTag (C:\downloads\chapter3-master\node_modules\jade\lib\parser.js:620:25) at Object.Parser.parseExpr (C:\downloads\chapter3-master\node_modules\jade\lib\parser.js:227:21) at Object.Parser.block (C:\downloads\chapter3-master\node_modules\jade\lib\parser.js:595:25) at Object.Parser.tag (C:\downloads\chapter3-master\node_modules\jade\lib\parser.js:708:26)

NaohiroOoiwa commented 11 years ago

This error can be fixed by a following patch.

--- chapter3/views/example2.jade.orig   2013-08-21 23:23:36.519583828 +0900
+++ chapter3/views/example2.jade    2013-08-22 00:35:33.947987238 +0900
@@ -25,7 +25,7 @@ style
         h2 Hack #30 Create Custom Video Controls with Video APIs
         video(id='myVideo', width='480', controls, height='360', poster='examples/sanfran.jpg', src='examples/sanfran.m4v')
         track(src="/examples/subtitles.vtt", type="text/vtt", kind="subtitles", srclang="en", label="English", default)
-        div(style='margin-bottom:30px)
+        div(style='margin-bottom:30px')
         button.button.skipBack skip back
         button.button.stop stop
         button.button.play play