mirror of
https://github.com/MontFerret/ferret.git
synced 2025-08-15 20:02:56 +02:00
Missed renaming some identifiers
This commit is contained in:
@@ -43,8 +43,8 @@ func GetIn(from core.Value, byPath []core.Value) (core.Value, error) {
|
|||||||
result = arr.Get(segment.(Int))
|
result = arr.Get(segment.(Int))
|
||||||
|
|
||||||
break
|
break
|
||||||
case core.HtmlElementType, core.HtmlDocumentType:
|
case core.HTMLElementType, core.HTMLDocumentType:
|
||||||
el := result.(HtmlNode)
|
el := result.(HTMLNode)
|
||||||
|
|
||||||
if segmentType == core.IntType {
|
if segmentType == core.IntType {
|
||||||
result = el.GetChildNode(segment.(Int))
|
result = el.GetChildNode(segment.(Int))
|
||||||
@@ -69,8 +69,8 @@ func GetIn(from core.Value, byPath []core.Value) (core.Value, error) {
|
|||||||
case "length":
|
case "length":
|
||||||
result = el.Length()
|
result = el.Length()
|
||||||
case "url":
|
case "url":
|
||||||
if result.Type() == core.HtmlDocumentType {
|
if result.Type() == core.HTMLDocumentType {
|
||||||
doc, ok := result.(HtmlDocument)
|
doc, ok := result.(HTMLDocument)
|
||||||
|
|
||||||
if ok {
|
if ok {
|
||||||
result = doc.Url()
|
result = doc.Url()
|
||||||
@@ -92,8 +92,8 @@ func GetIn(from core.Value, byPath []core.Value) (core.Value, error) {
|
|||||||
from.Type(),
|
from.Type(),
|
||||||
core.ArrayType,
|
core.ArrayType,
|
||||||
core.ObjectType,
|
core.ObjectType,
|
||||||
core.HtmlDocumentType,
|
core.HTMLDocumentType,
|
||||||
core.HtmlElementType,
|
core.HTMLElementType,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user