--- a/extensions.st Mon Dec 19 13:19:13 2016 +0100
+++ b/extensions.st Tue Dec 20 12:10:08 2016 +0100
@@ -501,9 +501,12 @@
!CharacterArray methodsFor:'inspecting'!
inspector2TabHTML
- "/ use smalltalk at, to prevent HTMLDocumentView becoming a prereq of libbasic
+ |lcString|
+
+ "/ use Smalltalk >> at:, to prevent HTMLDocumentView becoming a prereq of libbasic
(Smalltalk at:#HTMLDocumentView) notNil ifTrue:[
- ((self startsWith:'<!!DOCTYPE html') or:[ (self startsWith:'<html>') ]) ifTrue:[
+ lcString := self asLowercase.
+ ((lcString startsWith:'<!!doctype html' ) or:[ (lcString startsWith:'<html>') ]) ifTrue:[
^self newInspector2Tab
label: 'HTML';
priority: 35;
@@ -511,7 +514,7 @@
yourself
].
].
- "/ If nil is returned, tab is not shown...
+ "/ If nil is returned, the HTML tab is not shown...
^ nil
"Created: / 17-02-2008 / 10:10:50 / janfrog"