Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue 185 in html5lib: Make new-style HTMLTokenizer
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
html5...@googlecode.com  
View profile  
 More options Jun 9 2011, 5:49 am
From: html5...@googlecode.com
Date: Thu, 09 Jun 2011 09:49:13 +0000
Local: Thurs, Jun 9 2011 5:49 am
Subject: Issue 185 in html5lib: Make new-style HTMLTokenizer
Status: New
Owner: ----

New issue 185 by kos...@gmail.com: Make new-style HTMLTokenizer
http://code.google.com/p/html5lib/issues/detail?id=185

Ok, I'll describe the whole problem.

I had a task for creating html sanitizer that keeps iframe's for youtube  
videos. I ended up with a sanitizer mixin, that when it sees a youtube  
iframe, it starts to skip all new elements until next /iframe.

So since HTMLTokenizer is old-style class -- __init__ in my sanitizer mixin  
wouldn't be called and I won't be able to set self.skip_until_iframe =  
False in it.

My tests showed that performance is the same.

Attachments:
        newstyle_tokenizer.diff  588 bytes


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
html5...@googlecode.com  
View profile  
 More options May 20 2012, 1:52 pm
From: html5...@googlecode.com
Date: Sun, 20 May 2012 17:52:02 +0000
Local: Sun, May 20 2012 1:52 pm
Subject: Re: Issue 185 in html5lib: Make new-style HTMLTokenizer
Updates:
        Status: WFM

Comment #1 on issue 185 by ja...@hoppipolla.co.uk: Make new-style  
HTMLTokenizer
http://code.google.com/p/html5lib/issues/detail?id=185

(No comment was entered for this change.)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »