Skip to content

Commit

Permalink
can parse consecuttive attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Aug 18, 2023
1 parent 60f4001 commit 3dfec5a
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 184 deletions.
12 changes: 12 additions & 0 deletions src/Famix-Html-Importer-Tests/FamixHtmlImporterTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,18 @@ FamixHtmlImporterTest >> testCanParseCommentFirstThenDiv [
self assert: (htmlModel allWithType: FamixHtmlElement) size equals: 1
]

{ #category : #initialization }
FamixHtmlImporterTest >> testCanParseConsecutiveAttributes [

importer importString:
' <bl-hyperlink-click [arrow]="false" testLabelValue="Lien_31" id="lien31" (clickEvent)="openPhase(BanqueListeFormulaire) ;$event.preventDefault()"[link]="''#''">'.
self assert: (htmlModel allWithType: FamixHtmlElement) size equals: 1.
self
assert:
(htmlModel allWithType: FamixHtmlElement) anyOne attributes size
equals: 5
]

{ #category : #initialization }
FamixHtmlImporterTest >> testCanParseDivFirstThenComment [

Expand Down
4 changes: 2 additions & 2 deletions src/SmaCC_HTML/HTMLElementNode.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Class {
#instVars : [
'beginTagOpen',
'tagOpenName',
'htmlAttributes',
'beginTagClose',
'_children',
'endTagOpen',
'endTagOpenName',
'endTagClose'
'endTagClose',
'htmlAttributes'
],
#category : #'SmaCC_HTML'
}
Expand Down
Loading

0 comments on commit 3dfec5a

Please sign in to comment.