@@ -264,37 +264,37 @@ def t(s): return p.hyper_re.sub(p._hyper_repl, s)
264264 ae = self .assertEqual
265265 ae (t ('item123123123123' ), 'item123123123123' )
266266 ae (t ('http://roundup.net/' ),
267- '<a href="http://roundup.net/" rel="nofollow">http://roundup.net/</a>' )
267+ '<a href="http://roundup.net/" rel="nofollow noopener ">http://roundup.net/</a>' )
268268 ae (t ('<HTTP://roundup.net/>' ),
269- '<<a href="HTTP://roundup.net/" rel="nofollow">HTTP://roundup.net/</a>>' )
269+ '<<a href="HTTP://roundup.net/" rel="nofollow noopener ">HTTP://roundup.net/</a>>' )
270270 ae (t ('<http://roundup.net/>.' ),
271- '<<a href="http://roundup.net/" rel="nofollow">http://roundup.net/</a>>.' )
271+ '<<a href="http://roundup.net/" rel="nofollow noopener ">http://roundup.net/</a>>.' )
272272 ae (t ('<www.roundup.net>' ),
273- '<<a href="http://www.roundup.net" rel="nofollow">www.roundup.net</a>>' )
273+ '<<a href="http://www.roundup.net" rel="nofollow noopener ">www.roundup.net</a>>' )
274274 ae (t ('(www.roundup.net)' ),
275- '(<a href="http://www.roundup.net" rel="nofollow">www.roundup.net</a>)' )
275+ '(<a href="http://www.roundup.net" rel="nofollow noopener ">www.roundup.net</a>)' )
276276 ae (t ('foo http://msdn.microsoft.com/en-us/library/ms741540(VS.85).aspx bar' ),
277- 'foo <a href="http://msdn.microsoft.com/en-us/library/ms741540(VS.85).aspx" rel="nofollow">'
277+ 'foo <a href="http://msdn.microsoft.com/en-us/library/ms741540(VS.85).aspx" rel="nofollow noopener ">'
278278 'http://msdn.microsoft.com/en-us/library/ms741540(VS.85).aspx</a> bar' )
279279 ae (t ('(e.g. http://en.wikipedia.org/wiki/Python_(programming_language))' ),
280- '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)" rel="nofollow">'
280+ '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)" rel="nofollow noopener ">'
281281 'http://en.wikipedia.org/wiki/Python_(programming_language)</a>)' )
282282 ae (t ('(e.g. http://en.wikipedia.org/wiki/Python_(programming_language)).' ),
283- '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)" rel="nofollow">'
283+ '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)" rel="nofollow noopener ">'
284284 'http://en.wikipedia.org/wiki/Python_(programming_language)</a>).' )
285285 ae (t ('(e.g. http://en.wikipedia.org/wiki/Python_(programming_language))>.' ),
286- '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)" rel="nofollow">'
286+ '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language)" rel="nofollow noopener ">'
287287 'http://en.wikipedia.org/wiki/Python_(programming_language)</a>)>.' )
288288 ae (t ('(e.g. http://en.wikipedia.org/wiki/Python_(programming_language>)).' ),
289- '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language" rel="nofollow">'
289+ '(e.g. <a href="http://en.wikipedia.org/wiki/Python_(programming_language" rel="nofollow noopener ">'
290290 'http://en.wikipedia.org/wiki/Python_(programming_language</a>>)).' )
291291 for c in '.,;:!' :
292292 # trailing punctuation is not included
293293 ae (t ('http://roundup.net/%c ' % c ),
294- '<a href="http://roundup.net/" rel="nofollow">http://roundup.net/</a>%c ' % c )
294+ '<a href="http://roundup.net/" rel="nofollow noopener ">http://roundup.net/</a>%c ' % c )
295295 # but it's included if it's part of the URL
296296 ae (t ('http://roundup.net/%c/' % c ),
297- '<a href="http://roundup.net/%c/" rel="nofollow">http://roundup.net/%c/</a>' % (c , c ))
297+ '<a href="http://roundup.net/%c/" rel="nofollow noopener ">http://roundup.net/%c/</a>' % (c , c ))
298298
299299'''
300300class HTMLPermissions:
0 commit comments