Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'api.': 0.04; 'subject:Python': 0.05; 'clock,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subset': 0.09; 'target,': 0.09; 'terry': 0.09; 'ignore': 0.13; 'dec': 0.15; '+1.': 0.16; 'element,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'suggestion.': 0.16; 'wed,': 0.16; 'wrote:': 0.17; '"you': 0.17; 'instance': 0.17; 'jan': 0.18; '>>>': 0.18; 'doc': 0.22; 'feature': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'url:wiki': 0.26; 'header:X-Complaints-To:1': 0.28; 'rest': 0.28; 'dom': 0.29; 'url:wikipedia': 0.29; 'that.': 0.30; 'error': 0.30; 'url:python': 0.32; 'page.': 0.33; 'says': 0.33; '"")': 0.33; 'to:addr:python-list': 0.33; 'skip:d 20': 0.34; 'agree': 0.34; 'needed': 0.35; 'pm,': 0.35; 'received:org': 0.36; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'too': 0.36; 'turn': 0.36; 'possible': 0.37; 'does': 0.37; 'subject:: ': 0.38; 'skip:l 20': 0.38; 'supports': 0.38; 'some': 0.38; 'things': 0.38; 'url:en': 0.38; 'page': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'link': 0.60; 'latest': 0.61; 'more': 0.63; 'anchor': 0.65; 'url:%1': 0.68; 'clearer': 0.84; 'mistaken': 0.84; 'received:fios.verizon.net': 0.84; 'urge': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Brython - Python in the browser Date: Wed, 19 Dec 2012 21:46:49 -0500 References: <50D256B3.4070709@udel.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355971636 news.xs4all.nl 6906 [2001:888:2000:d::a6]:58497 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35175 On 12/19/2012 7:54 PM, Ian Kelly wrote: > On Wed, Dec 19, 2012 at 5:07 PM, Terry Reedy wrote: >> That says that my browser, Firefox 17, does not support HTML5. Golly gee. I >> don't think any browser support5 all of that moving target, and Gecko >> apparently supports about as large a subset as most. >> https://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29 >> It is possible the FF still does not support the particular feature needed >> for the clock, but then the page should say just that. Has the latest FF >> (17) actually been tested? > > It works for me using FF 17.0.1. It works for me too when ignore the mistaken and misleading error message and just turn on javascript for the page. Some sites say things like "You have javascript turned off. Turn it on to see all features." > >>> To create an element, for instance an HTML anchor : >>> doc <= A('Python',href="http://www.python.org") >> >> >> To me, that is a awful choice and I urge you to change it. > > +1. The DOM already has a well-established API. The following may > require more typing: > > link = document.createElement('a') > link.setAttribute("href", "http://www.python.org/") > link.appendChild(document.createTextNode('Python')) > document.body.appendChild(link) > > But it is much clearer in intent. I agree with the rest of your suggestion. -- Terry Jan Reedy